(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestInferBudgetHTTPStatus_NoError(t *testing.T) { |
| 12 | st, code, ok := InferBudgetHTTPStatus(context.Background(), nil) |
| 13 | if ok || st != 0 || code != "" { |
| 14 | t.Fatalf("expected no match, got status=%d code=%q ok=%v", st, code, ok) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func TestInferBudgetHTTPStatus_NonDeadlineError(t *testing.T) { |
| 19 | st, _, ok := InferBudgetHTTPStatus(context.Background(), errors.New("other")) |
nothing calls this directly
no test coverage detected