Atlas › Test

Errorf

Exact test identity: go.temporal.io/server/common/testing/await/TestT_CollectsAssertionFailures/Errorf

Package
go.temporal.io/server/common/testing/await
Suite / test hierarchy
TestT_CollectsAssertionFailures/Errorf
Test
Errorf
Introduced at
Errorf Frontier kind: Test frontier
Covered ranges
3
Covered lines
10
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/common/testing/await/t.go 10 covered LOC · 3 ranges

Open complete file

47
48 // Fail marks the current attempt as failed without stopping it.
49 > func (t *T) Fail() { t.go
50 > t.failed = true
51 > }
52
53 // Error records an error message for reporting on timeout.
54 > func (t *T) Error(args ...any) { t.go
55 > t.Fail()
56 > t.errors = append(t.errors, strings.TrimSuffix(fmt.Sprintln(args...), "\n"))
57 > }
58
59 // Errorf records an error message for reporting on timeout.
83
84 // Failed reports whether this attempt has failed.
85 > func (t *T) Failed() bool { t.go
86 > return t.failed
87 > }
88
89 // Helper marks the calling function as a test helper.