Movatterモバイル変換


[0]ホーム

URL:


testtrace

packagestandard library
go1.25.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:13Imported by:0

Details

Repository

cs.opensource.google/go/go

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.

funcParseFile

func ParseFile(testPathstring) (io.Reader,version.Version, *Expectation,error)

ParseFile parses a test file generated by the testgen package.

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

type Validator struct {GoVersionversion.Version// contains filtered or unexported fields}

Validator is a type used for validating a stream of trace.Events.

funcNewValidator

func NewValidator() *Validator

NewValidator creates a new Validator.

func (*Validator)Event

func (v *Validator) Event(evtrace.Event)error

Event validates ev as the next event in a stream of trace.Events.

Returns an error if validation fails.

func (*Validator)SkipClockSnapshotChecksadded 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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp