(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestLookupCodeMeta_MissingScope(t *testing.T) { |
| 47 | got, ok := LookupCodeMeta(99991679) |
| 48 | if !ok { |
| 49 | t.Fatalf("LookupCodeMeta(99991679) ok=false, want true") |
| 50 | } |
| 51 | want := CodeMeta{Category: errs.CategoryAuthorization, Subtype: errs.SubtypeMissingScope, Retryable: false} |
| 52 | if got != want { |
| 53 | t.Fatalf("LookupCodeMeta(99991679) = %+v, want %+v", got, want) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | func TestLookupCodeMeta_TaskPermissionDenied_MergedViaInit(t *testing.T) { |
| 58 | got, ok := LookupCodeMeta(1470403) |
nothing calls this directly
no test coverage detected