Documentation ¶
Overview ¶
Package testutil provides support functions for unit testing implementations of the kcd.ReadWriter interface.
Index ¶
Constants ¶
View Source
const ( Revision = "1234" Corpus = "ratzafratza" FormatKey = "λ" Language = "go" )
These constants are the expected values used by the Run tests.
Variables ¶
View Source
var UnitType *apb.CompilationUnit
UnitType is the type of compilation message stored in the database by the tests in Run.
Functions ¶
Types ¶
type TestError ¶
type TestError struct { Desc string // Description of the test that failed (human-readable) Method string // The name of the method that returned an error Err error // The underlying error returned by the method }
TestError is the concrete type of errors returned by the Run function.
Click to show internal directories.
Click to hide internal directories.