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

Function TestSFDecode

sflow/decoder_test.go:173–181  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

171}
172
173func TestSFDecode(t *testing.T) {
174 filter := []uint32{DataCounterSample}
175 reader := bytes.NewReader(TestsFlowRawPacket)
176 d := NewSFDecoder(reader, filter)
177 _, err := d.SFDecode()
178 if err != nil {
179 t.Error("unexpected error", err)
180 }
181}
182
183func TestDecodeSampleHeader(t *testing.T) {
184 filter := []uint32{DataCounterSample}

Callers

nothing calls this directly

Calls 2

SFDecodeMethod · 0.95
NewSFDecoderFunction · 0.85

Tested by

no test coverage detected