(t *testing.T)
| 250 | } |
| 251 | |
| 252 | func TestMissingStackTrace(t *testing.T) { |
| 253 | var err interface{ StackTrace() []runtime.Frame } = &safeError{} |
| 254 | stack := err.StackTrace() |
| 255 | if stack != nil { |
| 256 | t.Errorf("got stack with length %d, want nil", len(stack)) |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | type testRedactor struct { |
| 261 | msg string |
nothing calls this directly
no test coverage detected