testtrace
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeExpectation¶
type Expectation struct {// contains filtered or unexported fields}
Expectation represents the expected result of some operation.
funcExpectSuccess¶
func ExpectSuccess() *Expectation
ExpectSuccess returns an Expectation that trivially expects success.
funcParseExpectation¶
func ParseExpectation(data []byte) (*Expectation,error)
ParseExpectation parses the serialized form of an Expectation.
func (*Expectation)Check¶
func (e *Expectation) Check(errerror)error
Check validates whether err conforms to the expectation. Returnsan error if it does not conform.
Conformance means that if failure is true, then err must be non-nil.If err is non-nil, then it must match errorMatcher.
typeValidator¶
Validator is a type used for validating a stream of trace.Events.
func (*Validator)Event¶
Event validates ev as the next event in a stream of trace.Events.
Returns an error if validation fails.
func (*Validator)SkipClockSnapshotChecks¶added ingo1.25.0
func (v *Validator) SkipClockSnapshotChecks()
SkipClockSnapshotChecks causes the validator to skip checks on the clock snapshots.
Some platforms like Windows, with a small enough trace period, are unable to producemonotonically increasing timestamps due to very coarse clock granularity.