Documentation ¶
Overview ¶
Package vomtest provides protocol conformance tests for the Vanadium Object Marshaller (VOM).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Label string // Label describes the entry ValueLabel string // ValueLabel describes the Value Value reflect.Value // Value for vom test Version vom.Version // Version of encoding HexType string // Hex bytes representing the type message(s). HexValue string // Hex bytes representing the value message. }
Entry represents a test entry, which contains a value and hex bytes. The hex bytes represent the golden vom encoding of the value. Encoding tests encode the value and expect to get the hex bytes, while decoding tests decode the hex bytes and expect to get the value.
func AllFail ¶
func AllFail() []Entry
AllFail returns all entries that fail encoding and decoding tests.
The -vomtest flag may be used to filter the returned entries.
func AllFailFunc ¶
AllFailFunc returns the entries in AllFail where fn(e) returns true for each returned entry.
func AllPass ¶
func AllPass() []Entry
AllPass returns all entries that pass encoding and decoding tests.
The -vomtest flag may be used to filter the returned entries.
func AllPassFunc ¶
AllPassFunc returns the entries in AllPass where fn(e) returns true for each returned entry.
func (Entry) HexVersion ¶
HexVersion returns the version as hex bytes.
func (Entry) TypeBytes ¶
TypeBytes returns the binary bytes including the version and types. Returns a nil slice if no type messages are encoded.
func (Entry) ValueBytes ¶
ValueBytes returns the binary bytes including the version and value.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
vomforever
Command vomforever is a tool that searches for bugs in vom.
|
Command vomforever is a tool that searches for bugs in vom. |
vomtestgen
Command vomtestgen generates test cases for the vomtest package.
|
Command vomtestgen generates test cases for the vomtest package. |