(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestGetWithMissingKey(t *testing.T) { |
| 51 | t.Parallel() |
| 52 | req := httptest.NewRequest("GET", testBaseString+"/api/v1/cache/doesNotExist", nil) |
| 53 | rr := httptest.NewRecorder() |
| 54 | |
| 55 | getCacheHandler(rr, req) |
| 56 | resp := rr.Result() |
| 57 | |
| 58 | if resp.StatusCode != 404 { |
| 59 | t.Errorf("want: 404; got: %d", resp.StatusCode) |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | func TestGetKey(t *testing.T) { |
| 64 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…