MCPcopy Create free account
hub / github.com/google/gapid / TestCapture

Function TestCapture

core/fault/stacktrace/stacktrace_test.go:82–92  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80)
81
82func TestCapture(t *testing.T) {
83 assert := assert.To(t)
84 for _, test := range traces {
85 entries := test.Filtered().Entries()
86 lines := make([]string, len(entries))
87 for i, e := range entries {
88 lines[i] = e.String()
89 }
90 assert.For("stack").ThatSlice(lines).Equals(test.expect)
91 }
92}
93
94func TestPassThroughFilter(t *testing.T) {
95 ctx := log.Testing(t)

Callers

nothing calls this directly

Calls 6

EntriesMethod · 0.80
FilteredMethod · 0.80
ThatSliceMethod · 0.80
ForMethod · 0.80
StringMethod · 0.65
EqualsMethod · 0.65

Tested by

no test coverage detected