test

package
v3.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Token             = "NpdmVVGC-28356678-c236-4518-9de4-7a93009ccaf0-c5f92f2a-5539-453e-babc-9b06e1d6b7de"
	EncryptedToken    = "" /* 684-byte string literal not displayed */
	WrappedReceiptKey = "" /* 684-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func CreateThirdPartyAttributeDataEntry

func CreateThirdPartyAttributeDataEntry(t *testing.T, expiryDate *time.Time, stringDefinitions []string, tokenValue string) yotiprotoshare.DataEntry

CreateThirdPartyAttributeDataEntry creates a data entry of type "THIRD_PARTY_ATTRIBUTE", with the specified IssuingAttribute details.

func DecodeTestFile

func DecodeTestFile(t *testing.T, filename string) (result []byte)

DecodeTestFile reads a test fixture file

func GetTestFileAsString

func GetTestFileAsString(t *testing.T, filename string) string

GetTestFileAsString returns a file as a string

func GetTestFileBytes

func GetTestFileBytes(t *testing.T, filename string) (result []byte)

GetTestFileBytes takes a filepath, decodes it from base64, and returns a byte representation of it

func GetValidKey

func GetValidKey(filepath string) (key *rsa.PrivateKey)

GetValidKey returns a parsed RSA Private Key from a test key

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL