(t *testing.T)
| 80 | ) |
| 81 | |
| 82 | func 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 | |
| 94 | func TestPassThroughFilter(t *testing.T) { |
| 95 | ctx := log.Testing(t) |