(t *testing.T, counts stackCounterMap, trace stackTrace, count, total int64)
| 101 | } |
| 102 | |
| 103 | func assertStackCount(t *testing.T, counts stackCounterMap, trace stackTrace, count, total int64) { |
| 104 | t.Helper() |
| 105 | c := counts.lookup(trace) |
| 106 | |
| 107 | if c.count() != count { |
| 108 | t.Errorf("%sstack count mismatch: want=%d got=%d", trace, count, c.count()) |
| 109 | } |
| 110 | |
| 111 | if c.total() != total { |
| 112 | t.Errorf("%sstack total mismatch: want=%d got=%d", trace, total, c.total()) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | func makeStackTraceFromFrames(stackFrames []experimental.StackFrame) stackTrace { |
| 117 | return makeStackTrace(stackTrace{}, experimental.NewStackIterator(stackFrames...)) |
no test coverage detected