Documentation ¶
Overview ¶
Package storetestcases defines test cases to test stores.
Index ¶
- func RandomFilterOffset(b *testing.B, numSegments, i int) *store.Filter
- func RandomFilterOffsetMapID(b *testing.B, numSegments, i int) *store.Filter
- func RandomFilterOffsetMapIDTags(b *testing.B, numSegments, i int) *store.Filter
- func RandomFilterOffsetPrevLinkHash(b *testing.B, numSegments, i int) *store.Filter
- func RandomFilterOffsetPrevLinkHashTags(b *testing.B, numSegments, i int) *store.Filter
- func RandomFilterOffsetTags(b *testing.B, numSegments, i int) *store.Filter
- func RandomPaginationOffset(b *testing.B, numSegments, i int) *store.Pagination
- func RandomSegment(b *testing.B, numSegments, i int) *cs.Segment
- func RandomSegmentMapID(b *testing.B, numSegments, i int) *cs.Segment
- func RandomSegmentMapIDTags(b *testing.B, numSegments, i int) *cs.Segment
- func RandomSegmentPrevLinkHash(b *testing.B, numSegments, i int) *cs.Segment
- func RandomSegmentPrevLinkHashTags(b *testing.B, numSegments, i int) *cs.Segment
- func RandomSegmentTags(b *testing.B, numSegments, i int) *cs.Segment
- type Factory
- func (f Factory) BenchmarkDeleteSegment(b *testing.B)
- func (f Factory) BenchmarkDeleteSegmentParallel(b *testing.B)
- func (f Factory) BenchmarkFindSegments(b *testing.B, numSegments int, segmentFunc SegmentFunc, filterFunc FilterFunc)
- func (f Factory) BenchmarkFindSegments100(b *testing.B)
- func (f Factory) BenchmarkFindSegments1000(b *testing.B)
- func (f Factory) BenchmarkFindSegments10000(b *testing.B)
- func (f Factory) BenchmarkFindSegments10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegments1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegments100Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapID100Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDTags100Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsParallel(b *testing.B, numSegments int, segmentFunc SegmentFunc, filterFunc FilterFunc)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHash100Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsPrevLinkHashTags100Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsTags100Parallel(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs(b *testing.B, numSegments int, segmentFunc SegmentFunc, ...)
- func (f Factory) BenchmarkGetMapIDs100(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs1000(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs10000(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs10000Parallel(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs1000Parallel(b *testing.B)
- func (f Factory) BenchmarkGetMapIDs100Parallel(b *testing.B)
- func (f Factory) BenchmarkGetMapIDsParallel(b *testing.B, numSegments int, segmentFunc SegmentFunc, ...)
- func (f Factory) BenchmarkGetSegment(b *testing.B)
- func (f Factory) BenchmarkGetSegmentParallel(b *testing.B)
- func (f Factory) BenchmarkSaveSegment(b *testing.B)
- func (f Factory) BenchmarkSaveSegmentParallel(b *testing.B)
- func (f Factory) BenchmarkSaveSegmentUpdatedMapID(b *testing.B)
- func (f Factory) BenchmarkSaveSegmentUpdatedMapIDParallel(b *testing.B)
- func (f Factory) BenchmarkSaveSegmentUpdatedState(b *testing.B)
- func (f Factory) BenchmarkSaveSegmentUpdatedStateParallel(b *testing.B)
- func (f Factory) RunBenchmarks(b *testing.B)
- func (f Factory) RunTests(t *testing.T)
- func (f Factory) TestDeleteSegment(t *testing.T)
- func (f Factory) TestDeleteSegmentNotFound(t *testing.T)
- func (f Factory) TestFindSegmentEmpty(t *testing.T)
- func (f Factory) TestFindSegments(t *testing.T)
- func (f Factory) TestFindSegmentsMapID(t *testing.T)
- func (f Factory) TestFindSegmentsMapIDNotFound(t *testing.T)
- func (f Factory) TestFindSegmentsMapIDTags(t *testing.T)
- func (f Factory) TestFindSegmentsMultipleTags(t *testing.T)
- func (f Factory) TestFindSegmentsPagination(t *testing.T)
- func (f Factory) TestFindSegmentsPrevLinkHash(t *testing.T)
- func (f Factory) TestFindSegmentsPrevLinkHashMapID(t *testing.T)
- func (f Factory) TestFindSegmentsPrevLinkHashNotFound(t *testing.T)
- func (f Factory) TestFindSegmentsPrevLinkHashTags(t *testing.T)
- func (f Factory) TestFindSegmentsSingleTag(t *testing.T)
- func (f Factory) TestGetInfo(t *testing.T)
- func (f Factory) TestGetMapIDs(t *testing.T)
- func (f Factory) TestGetMapIDsEmpty(t *testing.T)
- func (f Factory) TestGetMapIDsPagination(t *testing.T)
- func (f Factory) TestGetSegment(t *testing.T)
- func (f Factory) TestGetSegmentNotFound(t *testing.T)
- func (f Factory) TestGetSegmentUpdatedMapID(t *testing.T)
- func (f Factory) TestGetSegmentUpdatedState(t *testing.T)
- func (f Factory) TestSaveSegment(t *testing.T)
- func (f Factory) TestSaveSegmentBranch(t *testing.T)
- func (f Factory) TestSaveSegmentUpdatedMapID(t *testing.T)
- func (f Factory) TestSaveSegmentUpdatedState(t *testing.T)
- type FilterFunc
- type PaginationFunc
- type SegmentFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomFilterOffset ¶
RandomFilterOffset is a a FilterFunc that create a filter with a random offset.
func RandomFilterOffsetMapID ¶
RandomFilterOffsetMapID is a a FilterFunc that create a filter with a random offset and map ID. The map ID will be one of ten possible values.
func RandomFilterOffsetMapIDTags ¶
RandomFilterOffsetMapIDTags is a a FilterFunc that create a filter with a random offset and map ID and tags. The map ID will be one of ten possible values. The tags will be one of fifty possible combinations.
func RandomFilterOffsetPrevLinkHash ¶
RandomFilterOffsetPrevLinkHash is a a FilterFunc that create a filter with a random offset and previous link hash. The previous link hash will be one of ten possible values.
func RandomFilterOffsetPrevLinkHashTags ¶
RandomFilterOffsetPrevLinkHashTags is a a FilterFunc that create a filter with a random offset and previous link hash and tags. The previous link hash will be one of ten possible values. The tags will be one of fifty possible combinations.
func RandomFilterOffsetTags ¶
RandomFilterOffsetTags is a a FilterFunc that create a filter with a random offset and map ID. The tags will be one of fifty possible combinations.
func RandomPaginationOffset ¶
func RandomPaginationOffset(b *testing.B, numSegments, i int) *store.Pagination
RandomPaginationOffset is a a PaginationFunc that create a pagination with a random offset.
func RandomSegment ¶
RandomSegment is a SegmentFunc that create a random segment.
func RandomSegmentMapID ¶
RandomSegmentMapID is a SegmentFunc that create a random segment with map ID. The map ID will be one of ten possible values.
func RandomSegmentMapIDTags ¶
RandomSegmentMapIDTags is a SegmentFunc that create a random segment with map ID and tags. The map ID will be one of ten possible values. The tags will contain one of ten possible values.
func RandomSegmentPrevLinkHash ¶
RandomSegmentPrevLinkHash is a SegmentFunc that create a random segment with previous link hash. The previous link hash will be one of ten possible values.
func RandomSegmentPrevLinkHashTags ¶
RandomSegmentPrevLinkHashTags is a SegmentFunc that create a random segment with previous link hash and tags. The previous link hash will be one of ten possible values. The tags will contain one of ten possible values.
Types ¶
type Factory ¶
type Factory struct { // New creates an adapter. New func() (store.Adapter, error) // Free is an optional function to free an adapter. Free func(adapter store.Adapter) }
Factory wraps functions to allocate and free an adapter, and is used to run the tests on an adapter.
func (Factory) BenchmarkDeleteSegment ¶
BenchmarkDeleteSegment benchmarks deleting existing segments.
func (Factory) BenchmarkDeleteSegmentParallel ¶
BenchmarkDeleteSegmentParallel benchmarks deleting existing segments in parallel.
func (Factory) BenchmarkFindSegments ¶
func (f Factory) BenchmarkFindSegments(b *testing.B, numSegments int, segmentFunc SegmentFunc, filterFunc FilterFunc)
BenchmarkFindSegments benchmarks finding segments.
func (Factory) BenchmarkFindSegments100 ¶
BenchmarkFindSegments100 benchmarks finding segments within 100 segments.
func (Factory) BenchmarkFindSegments1000 ¶
BenchmarkFindSegments1000 benchmarks finding segments within 1000 segments.
func (Factory) BenchmarkFindSegments10000 ¶
BenchmarkFindSegments10000 benchmarks finding segments within 10000 segments.
func (Factory) BenchmarkFindSegments10000Parallel ¶
BenchmarkFindSegments10000Parallel benchmarks finding segments within 10000 segments.
func (Factory) BenchmarkFindSegments1000Parallel ¶
BenchmarkFindSegments1000Parallel benchmarks finding segments within 1000 segments.
func (Factory) BenchmarkFindSegments100Parallel ¶
BenchmarkFindSegments100Parallel benchmarks finding segments within 100 segments.
func (Factory) BenchmarkFindSegmentsMapID100 ¶
BenchmarkFindSegmentsMapID100 benchmarks finding segments with a map ID within 100 segments.
func (Factory) BenchmarkFindSegmentsMapID1000 ¶
BenchmarkFindSegmentsMapID1000 benchmarks finding segments with a map ID within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapID10000 ¶
BenchmarkFindSegmentsMapID10000 benchmarks finding segments with a map ID within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapID10000Parallel ¶
BenchmarkFindSegmentsMapID10000Parallel benchmarks finding segments with a map ID within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapID1000Parallel ¶
BenchmarkFindSegmentsMapID1000Parallel benchmarks finding segments with a map ID within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapID100Parallel ¶
BenchmarkFindSegmentsMapID100Parallel benchmarks finding segments with a map ID within 100 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags100 ¶
BenchmarkFindSegmentsMapIDTags100 benchmarks finding segments with map ID and tags within 100 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags1000 ¶
BenchmarkFindSegmentsMapIDTags1000 benchmarks finding segments with map ID and tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags10000 ¶
BenchmarkFindSegmentsMapIDTags10000 benchmarks finding segments with map ID and tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags10000Parallel ¶
BenchmarkFindSegmentsMapIDTags10000Parallel benchmarks finding segments with map ID and tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags1000Parallel ¶
BenchmarkFindSegmentsMapIDTags1000Parallel benchmarks finding segments with map ID and tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapIDTags100Parallel ¶
BenchmarkFindSegmentsMapIDTags100Parallel benchmarks finding segments with map ID and tags within 100 segments.
func (Factory) BenchmarkFindSegmentsParallel ¶
func (f Factory) BenchmarkFindSegmentsParallel(b *testing.B, numSegments int, segmentFunc SegmentFunc, filterFunc FilterFunc)
BenchmarkFindSegmentsParallel benchmarks finding segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash100 ¶
BenchmarkFindSegmentsPrevLinkHash100 benchmarks finding segments with previous link hash within 100 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash1000 ¶
BenchmarkFindSegmentsPrevLinkHash1000 benchmarks finding segments with previous link hash within 1000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash10000 ¶
BenchmarkFindSegmentsPrevLinkHash10000 benchmarks finding segments with previous link hash within 10000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash10000Parallel ¶
BenchmarkFindSegmentsPrevLinkHash10000Parallel benchmarks finding segments with a previous link hash within 10000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash1000Parallel ¶
BenchmarkFindSegmentsPrevLinkHash1000Parallel benchmarks finding segments with a previous link hash within 1000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHash100Parallel ¶
BenchmarkFindSegmentsPrevLinkHash100Parallel benchmarks finding segments with a previous link hash within 100 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags100 ¶
BenchmarkFindSegmentsPrevLinkHashTags100 benchmarks finding segments with previous link hash and tags within 100 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags1000 ¶
BenchmarkFindSegmentsPrevLinkHashTags1000 benchmarks finding segments with previous link hash and tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags10000 ¶
BenchmarkFindSegmentsPrevLinkHashTags10000 benchmarks finding segments with previous link hash and tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags10000Parallel ¶
BenchmarkFindSegmentsPrevLinkHashTags10000Parallel benchmarks finding segments with map ID and tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags1000Parallel ¶
BenchmarkFindSegmentsPrevLinkHashTags1000Parallel benchmarks finding segments with map ID and tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsPrevLinkHashTags100Parallel ¶
BenchmarkFindSegmentsPrevLinkHashTags100Parallel benchmarks finding segments with map ID and tags within 100 segments.
func (Factory) BenchmarkFindSegmentsTags100 ¶
BenchmarkFindSegmentsTags100 benchmarks finding segments with tags within 100 segments.
func (Factory) BenchmarkFindSegmentsTags1000 ¶
BenchmarkFindSegmentsTags1000 benchmarks finding segments with tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsTags10000 ¶
BenchmarkFindSegmentsTags10000 benchmarks finding segments with tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsTags10000Parallel ¶
BenchmarkFindSegmentsTags10000Parallel benchmarks finding segments with tags within 10000 segments.
func (Factory) BenchmarkFindSegmentsTags1000Parallel ¶
BenchmarkFindSegmentsTags1000Parallel benchmarks finding segments with tags within 1000 segments.
func (Factory) BenchmarkFindSegmentsTags100Parallel ¶
BenchmarkFindSegmentsTags100Parallel benchmarks finding segments with tags within 100 segments.
func (Factory) BenchmarkGetMapIDs ¶
func (f Factory) BenchmarkGetMapIDs(b *testing.B, numSegments int, segmentFunc SegmentFunc, paginationFunc PaginationFunc)
BenchmarkGetMapIDs benchmarks getting map IDs.
func (Factory) BenchmarkGetMapIDs100 ¶
BenchmarkGetMapIDs100 benchmarks getting map IDs within 100 segments.
func (Factory) BenchmarkGetMapIDs1000 ¶
BenchmarkGetMapIDs1000 benchmarks getting map IDs within 1000 segments.
func (Factory) BenchmarkGetMapIDs10000 ¶
BenchmarkGetMapIDs10000 benchmarks getting map IDs within 10000 segments.
func (Factory) BenchmarkGetMapIDs10000Parallel ¶
BenchmarkGetMapIDs10000Parallel benchmarks getting map IDs within 10000 segments in parallel.
func (Factory) BenchmarkGetMapIDs1000Parallel ¶
BenchmarkGetMapIDs1000Parallel benchmarks getting map IDs within 1000 segments in parallel.
func (Factory) BenchmarkGetMapIDs100Parallel ¶
BenchmarkGetMapIDs100Parallel benchmarks getting map IDs within 100 segments in parallel.
func (Factory) BenchmarkGetMapIDsParallel ¶
func (f Factory) BenchmarkGetMapIDsParallel(b *testing.B, numSegments int, segmentFunc SegmentFunc, paginationFunc PaginationFunc)
BenchmarkGetMapIDsParallel benchmarks getting map IDs in parallel.
func (Factory) BenchmarkGetSegment ¶
BenchmarkGetSegment benchmarks getting existing segments.
func (Factory) BenchmarkGetSegmentParallel ¶
BenchmarkGetSegmentParallel benchmarks getting existing segments in parallel.
func (Factory) BenchmarkSaveSegment ¶
BenchmarkSaveSegment benchmarks saving new segments.
func (Factory) BenchmarkSaveSegmentParallel ¶
BenchmarkSaveSegmentParallel benchmarks saving new segments in parallel.
func (Factory) BenchmarkSaveSegmentUpdatedMapID ¶
BenchmarkSaveSegmentUpdatedMapID benchmarks updating segment map IDs.
func (Factory) BenchmarkSaveSegmentUpdatedMapIDParallel ¶
BenchmarkSaveSegmentUpdatedMapIDParallel benchmarks updating segment map IDs in parallel.
func (Factory) BenchmarkSaveSegmentUpdatedState ¶
BenchmarkSaveSegmentUpdatedState benchmarks updating segments states.
func (Factory) BenchmarkSaveSegmentUpdatedStateParallel ¶
BenchmarkSaveSegmentUpdatedStateParallel benchmarks updating segments states in parallel.
func (Factory) RunBenchmarks ¶
RunBenchmarks runs all the benchmarks.
func (Factory) TestDeleteSegment ¶
TestDeleteSegment tests what happens when you delete an existing segments.
func (Factory) TestDeleteSegmentNotFound ¶
TestDeleteSegmentNotFound tests what happens when you delete a nonexistent segment.
func (Factory) TestFindSegmentEmpty ¶
TestFindSegmentEmpty tests what happens when there are no matches.
func (Factory) TestFindSegments ¶
TestFindSegments tests what happens when you search with default pagination.
func (Factory) TestFindSegmentsMapID ¶
TestFindSegmentsMapID tests whan happens when you search for an existing map ID.
func (Factory) TestFindSegmentsMapIDNotFound ¶
TestFindSegmentsMapIDNotFound tests whan happens when you search for a nonexistent map ID.
func (Factory) TestFindSegmentsMapIDTags ¶
TestFindSegmentsMapIDTags tests whan happens when you search for an existing map ID and tags.
func (Factory) TestFindSegmentsMultipleTags ¶
TestFindSegmentsMultipleTags tests what happens when you search with more than one tag.
func (Factory) TestFindSegmentsPagination ¶
TestFindSegmentsPagination tests what happens when you search with pagination.
func (Factory) TestFindSegmentsPrevLinkHash ¶
TestFindSegmentsPrevLinkHash tests whan happens when you search for an existing previous link hash.
func (Factory) TestFindSegmentsPrevLinkHashMapID ¶
TestFindSegmentsPrevLinkHashMapID tests that the map ID is ignored if a previous link hash is given.
func (Factory) TestFindSegmentsPrevLinkHashNotFound ¶
TestFindSegmentsPrevLinkHashNotFound tests whan happens when you search for a nonexistent previous link hash.
func (Factory) TestFindSegmentsPrevLinkHashTags ¶
TestFindSegmentsPrevLinkHashTags tests whan happens when you search for a previous link hash and tags.
func (Factory) TestFindSegmentsSingleTag ¶
TestFindSegmentsSingleTag tests what happens when you search with only one tag.
func (Factory) TestGetInfo ¶
TestGetInfo tests what happens when you get information about the adapter.
func (Factory) TestGetMapIDs ¶
TestGetMapIDs tests what happens when you get map IDs with default pagination.
func (Factory) TestGetMapIDsEmpty ¶
TestGetMapIDsEmpty tests what happens when you should get no map IDs.
func (Factory) TestGetMapIDsPagination ¶
TestGetMapIDsPagination tests what happens when you get map IDs with pagination.
func (Factory) TestGetSegment ¶
TestGetSegment tests what happens when you get an existing segment.
func (Factory) TestGetSegmentNotFound ¶
TestGetSegmentNotFound tests what happens when you get a nonexistent segment.
func (Factory) TestGetSegmentUpdatedMapID ¶
TestGetSegmentUpdatedMapID tests what happens when you get a segment whose map ID was updated.
func (Factory) TestGetSegmentUpdatedState ¶
TestGetSegmentUpdatedState tests what happens when you get a segment whose state was updated.
func (Factory) TestSaveSegment ¶
TestSaveSegment tests what happens when you save a new segment.
func (Factory) TestSaveSegmentBranch ¶
TestSaveSegmentBranch tests what happens when you save a segment with a previous link hash.
func (Factory) TestSaveSegmentUpdatedMapID ¶
TestSaveSegmentUpdatedMapID tests what happens when you update the map ID of a segment.
func (Factory) TestSaveSegmentUpdatedState ¶
TestSaveSegmentUpdatedState tests what happens when you update the state of a segment.
type FilterFunc ¶
FilterFunc is a type for a function that creates a filter for benchmarks.
type PaginationFunc ¶
type PaginationFunc func(b *testing.B, numSegments, i int) *store.Pagination
PaginationFunc is a type for a function that creates a pagination for benchmarks.