# Packages
Package graph implements a multigraph model of a SCION network for use in tests.
No description provided by the author
No description provided by the author
Package loopback defines a net.PacketConn implementation where sent messages are echoed back on the same connection.
Package p2p (point to point) defines a net.PacketConn implementation where messages are exchanged via channels.
# Functions
AssertChannelClosedBefore will call t.Fatalf if the first read from the channel happens before timeout.
AssertReadReturnsBefore will call t.Fatalf if the first read from the channel doesn't happen before timeout.
AssertReadReturnsBetween will call t.Fatalf if the first read from the channel doesn't happen between x and y.
ExpandPath returns testdata/file.
FailOnErr causes t to exit with a fatal error if err is non-nil.
MustMarshalJSONToFile marshals v and writes the result to file testdata/baseName.
MustParseAS parses s and returns the corresponding addr.AS object.
MustParseHexString parses s and returns the corresponding byte slice.
MustParseIA parses s and returns the corresponding addr.IA object.
MustReadFromFile reads testdata/baseName and returns the raw content.
MustTempDir creates a new temporary directory under dir with the specified prefix.
MustTempFileName is a wrapper around TempFileName.
MustWriteToFile writes b to file testdata/baseName.
No description provided by the author
SoMsgError wraps nil/non-nil error Goconvey assertions into a single yes/no error check.
TempFileName creates a temporary file in dir with the specified prefix, and then closes and deletes the file and returns its name.
# Structs
PanickingReporter is a wrapper around the *testing.T implementation of gomock.TestReporter which panics and logs on FatalF instead of calling runtime.Goexit().
No description provided by the author