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

Function RunQueryCSUP

fuzz/fuzz.go:83–90  ·  view source on GitHub ↗
(t testing.TB, buf *bytes.Buffer, querySource string)

Source from the content-addressed store, hash-verified

81}
82
83func RunQueryCSUP(t testing.TB, buf *bytes.Buffer, querySource string) []super.Value {
84 sctx := super.NewContext()
85 reader, err := csupio.NewReader(sctx, bytes.NewReader(buf.Bytes()), nil)
86 require.NoError(t, err)
87 readers := []sio.Reader{reader}
88 defer sio.CloseReaders(readers)
89 return RunQuery(t, sctx, readers, querySource, func(_ demand.Demand) {})
90}
91
92func RunQuery(t testing.TB, sctx *super.Context, readers []sio.Reader, querySource string, useDemand func(demandIn demand.Demand)) []super.Value {
93 // Compile query

Callers 1

FuzzQueryFunction · 0.92

Calls 6

NewContextFunction · 0.92
NewReaderFunction · 0.92
CloseReadersFunction · 0.92
RunQueryFunction · 0.85
NewReaderMethod · 0.45
BytesMethod · 0.45

Tested by 1

FuzzQueryFunction · 0.74