(b *testing.B)
| 161 | } |
| 162 | |
| 163 | func BenchmarkDecodeTemplate(b *testing.B) { |
| 164 | ip := net.ParseIP("127.0.0.1") |
| 165 | mCache := GetCache("cache.file") |
| 166 | for i := 0; i < b.N; i++ { |
| 167 | d := NewDecoder(ip, tpl) |
| 168 | d.Decode(mCache) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func BenchmarkDecodeOptsTemplate(b *testing.B) { |
| 173 | ip := net.ParseIP("127.0.0.1") |
nothing calls this directly
no test coverage detected