MCPcopy Create free account
hub / github.com/brimdata/super / roundtrip

Function roundtrip

csup/csup_test.go:37–43  ·  view source on GitHub ↗
(t *testing.T, valuesIn []super.Value)

Source from the content-addressed store, hash-verified

35}
36
37func roundtrip(t *testing.T, valuesIn []super.Value) {
38 var buf bytes.Buffer
39 fuzz.WriteCSUP(t, valuesIn, &buf)
40 valuesOut, err := fuzz.ReadCSUP(buf.Bytes(), nil)
41 require.NoError(t, err)
42 fuzz.CompareValues(t, valuesIn, valuesOut)
43}
44
45func TestCSUPBatchBug(t *testing.T) {
46 var b bytes.Buffer

Callers 2

FuzzCSUPRoundtripGenFunction · 0.85
FuzzCSUPRoundtripBytesFunction · 0.85

Calls 4

WriteCSUPFunction · 0.92
ReadCSUPFunction · 0.92
CompareValuesFunction · 0.92
BytesMethod · 0.45

Tested by

no test coverage detected