(t *testing.T)
| 141 | } |
| 142 | |
| 143 | func TestDecodeTemplate(t *testing.T) { |
| 144 | ip := net.ParseIP("127.0.0.1") |
| 145 | mCache := GetCache("cache.file") |
| 146 | d := NewDecoder(ip, tpl) |
| 147 | _, err := d.Decode(mCache) |
| 148 | if err != nil { |
| 149 | t.Error("unexpected error happened:", err) |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | func TestDecodeOptsTemplate(t *testing.T) { |
| 154 | ip := net.ParseIP("127.0.0.1") |
nothing calls this directly
no test coverage detected