(t *testing.T)
| 131 | } |
| 132 | |
| 133 | func TestDecodeNoData(t *testing.T) { |
| 134 | ip := net.ParseIP("127.0.0.1") |
| 135 | mCache := GetCache("cache.file") |
| 136 | body := []byte{} |
| 137 | d := NewDecoder(ip, body) |
| 138 | if _, err := d.Decode(mCache); err == nil { |
| 139 | t.Error("expected err but nothing") |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func TestDecodeTemplate(t *testing.T) { |
| 144 | ip := net.ParseIP("127.0.0.1") |
nothing calls this directly
no test coverage detected