package testtrace

Import Path
	internal/trace/testtrace (on go.dev)

Dependency Relation
	imports 17 packages, and imported by 0 packages


Package-Level Type Names (total 2)
/* sort by: | */
Expectation represents the expected result of some operation. Check validates whether err conforms to the expectation. Returns an 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. func ExpectSuccess() *Expectation func ParseExpectation(data []byte) (*Expectation, error) func ParseFile(testPath string) (io.Reader, version.Version, *Expectation, error)
Validator is a type used for validating a stream of trace.Events. GoVersion version.Version Event validates ev as the next event in a stream of trace.Events. Returns an error if validation fails. SkipClockSnapshotChecks causes the validator to skip checks on the clock snapshots. Some platforms like Windows, with a small enough trace period, are unable to produce monotonically increasing timestamps due to very coarse clock granularity. func NewValidator() *Validator
Package-Level Functions (total 7)
Dump saves the trace to a file or the test log.
ExpectSuccess returns an Expectation that trivially expects success.
HasSyscallEvents returns true if the current platform has real syscall events available.
MustHaveSyscallEvents skips the current test if the current platform does not support true system call events.
NewValidator creates a new Validator.
ParseExpectation parses the serialized form of an Expectation.
ParseFile parses a test file generated by the testgen package.