(t *testing.T)
| 6 | import "testing" |
| 7 | |
| 8 | func TestNopCache(t *testing.T) { |
| 9 | data, ok := NopCache.Get("foo") |
| 10 | if data != nil { |
| 11 | t.Errorf("NopCache.Get returned non-nil data") |
| 12 | } |
| 13 | if ok != false { |
| 14 | t.Errorf("NopCache.Get returned ok = true, should always be false.") |
| 15 | } |
| 16 | |
| 17 | // nothing to test on these methods other than to verify they exist |
| 18 | NopCache.Set("", []byte{}) |
| 19 | NopCache.Delete("") |
| 20 | } |