(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestExitCodeForCategory_UnknownDefaults(t *testing.T) { |
| 39 | if got := ExitCodeForCategory(errs.Category("not_a_real_category")); got != ExitInternal { |
| 40 | t.Errorf("ExitCodeForCategory(unknown) = %d, want %d (ExitInternal)", got, ExitInternal) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func TestExitCodeOf_Nil(t *testing.T) { |
| 45 | if got := ExitCodeOf(nil); got != 0 { |
nothing calls this directly
no test coverage detected