Documentation ¶
Index ¶
- Constants
- func CreateThirdPartyAttributeDataEntry(t *testing.T, expiryDate *time.Time, stringDefinitions []string, ...) yotiprotoshare.DataEntry
- func DecodeTestFile(t *testing.T, filename string) (result []byte)
- func GetTestFileAsString(t *testing.T, filename string) string
- func GetTestFileBytes(t *testing.T, filename string) (result []byte)
- func GetValidKey(filepath string) (key *rsa.PrivateKey)
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 ¶
DecodeTestFile reads a test fixture file
func GetTestFileAsString ¶
GetTestFileAsString returns a file as a string
func GetTestFileBytes ¶
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.
Click to show internal directories.
Click to hide internal directories.