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

Function TestDecodeNoData

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

Source from the content-addressed store, hash-verified

131}
132
133func 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
143func TestDecodeTemplate(t *testing.T) {
144 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