# 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.
No description provided by the author
Package mock_xtest is a generated GoMock package.
Package p2p (point to point) provides a net.PacketConn wrapper around net.Pipe().
# Functions
AssertError checks that err is not nil if expectError is true and that is it nil otherwise.
AssertErrorsIs checks that errors.Is(actualErr, expectedErr) returns true, if expectedErr is not nil.
AssertReadDoesNotReturnBefore 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.
SoMsgErrorStr checks whether the top error in err matches string str.
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
Waiter wraps the waitgroup and allows waiting with timeouts.
# Interfaces
Callback defines an interfaces that provides a callback function that is mockable.