(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestContextOnGoErrors(t *testing.T) { |
| 46 | err := errors.New("go error") |
| 47 | |
| 48 | SetContext(err, "foo", "bar") |
| 49 | |
| 50 | v := GetContext(err, "foo") |
| 51 | if v == "bar" { |
| 52 | t.Error("expected empty context on go error") |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestContextOnWrappedErrors(t *testing.T) { |
| 57 | err := NewFatalError(errors.New("go error")) |
nothing calls this directly
no test coverage detected