MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / makeQuery

Function makeQuery

utils_test.go:317–328  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

315}
316
317func makeQuery(n int) []byte {
318 q1 := "SELECT column "
319 q2 := "WHERE Date=today()"
320
321 var b []byte
322 b = append(b, q1...)
323 for i := 0; i < n; i++ {
324 b = append(b, fmt.Sprintf("col%d, ", i)...)
325 }
326 b = append(b, q2...)
327 return b
328}
329
330func TestCalcMapHash(t *testing.T) {
331 testCases := []struct {

Callers 3

TestGetFullQueryGzippedFunction · 0.85
TestCachedReadCloserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected