Documentation
¶
Index ¶
- func CheckIsErr(t testing.TB, err error, msg string)
- func CheckMarshal(t *testing.T, x, y interface{ ... })
- func CheckNoErr(t testing.TB, err error, msg string)
- func CheckOk(result bool, msg string, t testing.TB)
- func CheckPanic(f func()) error
- func ReadGzip(path string) ([]byte, error)
- func ReportError(t testing.TB, got, want interface{}, inputs ...interface{})
- type ACVP
- type HexBytes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsErr ¶
CheckIsErr fails if err ==nil. Print msg as an error message.
func CheckMarshal ¶ added in v1.6.2
func CheckMarshal( t *testing.T, x, y interface { encoding.BinaryMarshaler encoding.BinaryUnmarshaler }, )
func CheckNoErr ¶
CheckNoErr fails if err !=nil. Print msg as an error message.
func CheckPanic ¶
func CheckPanic(f func()) error
CheckPanic returns true if call to function 'f' caused panic.
func ReportError ¶
ReportError reports an error if got is different from want.
Types ¶
type ACVP ¶ added in v1.6.5
type ACVP struct {
// Groups are the raw test groups of the prompt file. Unmarshal each one
// into whatever shape the algorithm under test expects.
Groups []json.RawMessage
// contains filtered or unexported fields
}
ACVP is a decoded pair of ACVP test vector files: the prompt file, holding the test groups, and the expectedResults file, holding the results indexed by test case id.
Vectors come from https://github.com/usnistgov/ACVP-Server, where every algorithm directory pairs a prompt.json with an expectedResults.json.
Click to show internal directories.
Click to hide internal directories.