MCPcopy Create free account
hub / github.com/Edgio/vflow / TestDecodeTemplate

Function TestDecodeTemplate

ipfix/decoder_test.go:143–151  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

141}
142
143func 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
153func TestDecodeOptsTemplate(t *testing.T) {
154 ip := net.ParseIP("127.0.0.1")

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
GetCacheFunction · 0.70
NewDecoderFunction · 0.70

Tested by

no test coverage detected