MCPcopy Index your code
hub / github.com/cortexproject/cortex / resultLength

Function resultLength

integration/query_fuzz_test.go:1866–1878  ·  view source on GitHub ↗
(x model.Value)

Source from the content-addressed store, hash-verified

1864}
1865
1866func resultLength(x model.Value) int {
1867 vx, xvec := x.(model.Vector)
1868 if xvec {
1869 return vx.Len()
1870 }
1871
1872 mx, xMatrix := x.(model.Matrix)
1873 if xMatrix {
1874 return mx.Len()
1875 }
1876 // Other type, return 0
1877 return 0
1878}

Callers 1

runQueryFuzzTestCasesFunction · 0.85

Calls 1

LenMethod · 0.45

Tested by

no test coverage detected