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

Function TestDecodeNoData

netflow/v9/decoder_test.go:30–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestDecodeNoData(t *testing.T) {
31 ip := net.ParseIP("127.0.0.1")
32 mCache := GetCache("cache.file")
33 body := []byte{}
34 d := NewDecoder(ip, body)
35 if _, err := d.Decode(mCache); err == nil {
36 t.Error("expected err but nothing")
37 }
38}

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
GetCacheFunction · 0.70
NewDecoderFunction · 0.70

Tested by

no test coverage detected