MCPcopy Create free account
hub / github.com/VirusTotal/vt-cli / TestCSV

Function TestCSV

csv/csv_test.go:47–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestCSV(t *testing.T) {
48 for _, test := range csvTests {
49 b := new(bytes.Buffer)
50 err := NewEncoder(b).Encode(test.data)
51 assert.NoError(t, err)
52 assert.Equal(t, test.expected, b.String(), "Test %v", test.data)
53 }
54}

Callers

nothing calls this directly

Calls 2

NewEncoderFunction · 0.70
EncodeMethod · 0.45

Tested by

no test coverage detected