sampleTests

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2017 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sampleTests contains common tests for sample stage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBenchmarkSampleAll

func RunBenchmarkSampleAll(b *testing.B, sampleFactory sample.StageFactory)

RunBenchmarkSampleAll tests speed of sampling all documents.

func RunBenchmarkSampleFirst1000

func RunBenchmarkSampleFirst1000(b *testing.B, sampleFactory sample.StageFactory)

RunBenchmarkSampleFirst1000 tests speed of sampling first 1000 documents.

func RunBenchmarkSampleLast1000

func RunBenchmarkSampleLast1000(b *testing.B, sampleFactory sample.StageFactory)

RunBenchmarkSampleLast1000 tests speed of sampling last 1000 documents.

func RunBenchmarkSampleRandom1000

func RunBenchmarkSampleRandom1000(b *testing.B, sampleFactory sample.StageFactory)

RunBenchmarkSampleRandom1000 tests speed of sampling random 1000 documents.

func RunTestAll

func RunTestAll(t *testing.T, sampleFactory sample.StageFactory)

RunTestAll tests sample scope = all.

func RunTestFirst

func RunTestFirst(t *testing.T, sampleFactory sample.StageFactory)

RunTestFirst tests sample scope = first.

func RunTestInvalidLimitWithAllScope

func RunTestInvalidLimitWithAllScope(t *testing.T, sampleFactory sample.StageFactory)

RunTestInvalidLimitWithAllScope tests limit together with all scope.

func RunTestInvalidScope

func RunTestInvalidScope(t *testing.T, sampleFactory sample.StageFactory)

RunTestInvalidScope tests invalid sample scope.

func RunTestLast

func RunTestLast(t *testing.T, sampleFactory sample.StageFactory)

RunTestLast tests sample scope = last.

func RunTestQuery

func RunTestQuery(t *testing.T, sampleFactory sample.StageFactory)

RunTestQuery tests sample stage with query option.

func RunTestRandom

func RunTestRandom(t *testing.T, sampleFactory sample.StageFactory)

RunTestRandom tests sample scope = random.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL