Documentation ¶
Overview ¶
Package sampleTests contains common tests for sample stage.
Index ¶
- func RunBenchmarkSampleAll(b *testing.B, sampleFactory sample.StageFactory)
- func RunBenchmarkSampleFirst1000(b *testing.B, sampleFactory sample.StageFactory)
- func RunBenchmarkSampleLast1000(b *testing.B, sampleFactory sample.StageFactory)
- func RunBenchmarkSampleRandom1000(b *testing.B, sampleFactory sample.StageFactory)
- func RunTestAll(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestFirst(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestInvalidLimitWithAllScope(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestInvalidScope(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestLast(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestQuery(t *testing.T, sampleFactory sample.StageFactory)
- func RunTestRandom(t *testing.T, sampleFactory sample.StageFactory)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunBenchmarkSampleAll ¶
RunBenchmarkSampleAll tests speed of sampling all documents.
func RunBenchmarkSampleFirst1000 ¶
RunBenchmarkSampleFirst1000 tests speed of sampling first 1000 documents.
func RunBenchmarkSampleLast1000 ¶
RunBenchmarkSampleLast1000 tests speed of sampling last 1000 documents.
func RunBenchmarkSampleRandom1000 ¶
RunBenchmarkSampleRandom1000 tests speed of sampling random 1000 documents.
func RunTestAll ¶
RunTestAll tests sample scope = all.
func RunTestFirst ¶
RunTestFirst tests sample scope = first.
func RunTestInvalidLimitWithAllScope ¶
RunTestInvalidLimitWithAllScope tests limit together with all scope.
func RunTestInvalidScope ¶
RunTestInvalidScope tests invalid sample scope.
func RunTestLast ¶
RunTestLast tests sample scope = last.
func RunTestQuery ¶
RunTestQuery tests sample stage with query option.
func RunTestRandom ¶
RunTestRandom tests sample scope = random.
Types ¶
This section is empty.