(t *testing.T)
| 28 | ) |
| 29 | |
| 30 | func TestDecodeNoData(t *testing.T) { |
| 31 | ip := net.ParseIP("127.0.0.1") |
| 32 | mCache := GetCache("cache.file") |
| 33 | body := []byte{} |
| 34 | d := NewDecoder(ip, body) |
| 35 | if _, err := d.Decode(mCache); err == nil { |
| 36 | t.Error("expected err but nothing") |
| 37 | } |
| 38 | } |
nothing calls this directly
no test coverage detected