(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestErrorAsIssues(t *testing.T) { |
| 93 | iss := ErrorAsIssues(errors.New("wrapped-error")) |
| 94 | if iss.Err() == nil { |
| 95 | t.Fatal("iss.Err() got nil, wanted 'wrapped-error'") |
| 96 | } |
| 97 | if !strings.Contains(iss.Err().Error(), "wrapped-error") { |
| 98 | t.Errorf("iss.Err() got %v, wanted 'wrapped-error'", iss.Err()) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | func TestIssuesAppendSelf(t *testing.T) { |
| 103 | e, err := NewEnv() |
nothing calls this directly
no test coverage detected