(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestFromHeadersMissing(t *testing.T) { |
| 48 | if got := FromHeaders(http.Header{}); got != (BudgetStatus{}) { |
| 49 | t.Fatalf("missing X-Budget-Remaining must produce zero BudgetStatus, got %+v", got) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestFromHeadersClampsAndParses(t *testing.T) { |
| 54 | cases := []struct { |
nothing calls this directly
no test coverage detected