go/src/internal/trace/testtrace/validation.go

type Validator

type schedContext

type goState

type procState

// NewValidator creates a new Validator.
func NewValidator() *Validator {}

// Event validates ev as the next event in a stream of trace.Events.
//
// Returns an error if validation fails.
func (v *Validator) Event(ev trace.Event) error {}

func (v *Validator) hasRange(r trace.ResourceID, name string) bool {}

func (v *Validator) addRange(r trace.ResourceID, name string) {}

func (v *Validator) hasAnyRange(r trace.ResourceID) bool {}

func (v *Validator) deleteRange(r trace.ResourceID, name string) {}

func (v *Validator) getOrCreateThread(e *errAccumulator, ev trace.Event, m trace.ThreadID) *schedContext {}

func checkStack(e *errAccumulator, stk trace.Stack) {}

type errAccumulator

func (e *errAccumulator) Errorf(f string, args ...any) {}

func (e *errAccumulator) Errors() error {}