Documentation ¶
Overview ¶
Package storetestcases defines test cases to test stores.
Index ¶
- func RandomFilterOffset(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetMapID(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetMapIDTags(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetMapIDs(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetPrevLinkHash(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetPrevLinkHashTags(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomFilterOffsetTags(b *testing.B, numSegments, i int) *store.SegmentFilter
- func RandomPaginationOffset(b *testing.B, numSegments, i int) *store.MapFilter
- 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) BenchmarkDeleteValue(b *testing.B)
- func (f Factory) BenchmarkDeleteValueParallel(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) BenchmarkFindSegmentsMapIDs100(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDs1000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDs10000(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDs10000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDs1000Parallel(b *testing.B)
- func (f Factory) BenchmarkFindSegmentsMapIDs100Parallel(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) BenchmarkGetValue(b *testing.B)
- func (f Factory) BenchmarkGetValueParallel(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) BenchmarkSaveValue(b *testing.B)
- func (f Factory) BenchmarkSaveValueParallel(b *testing.B)
- func (f Factory) RunBenchmarks(b *testing.B)
- func (f Factory) RunTests(t *testing.T)
- func (f Factory) TestAddDidSaveChannel(t *testing.T)
- func (f Factory) TestBatchDeleteSegment(t *testing.T)
- func (f Factory) TestBatchDeleteValue(t *testing.T)
- func (f Factory) TestBatchSaveSegment(t *testing.T)
- func (f Factory) TestBatchSaveValue(t *testing.T)
- func (f Factory) TestBatchWriteDeleteSegment(t *testing.T)
- func (f Factory) TestBatchWriteDeleteValue(t *testing.T)
- func (f Factory) TestBatchWriteSaveSegment(t *testing.T)
- func (f Factory) TestBatchWriteSaveValue(t *testing.T)
- func (f Factory) TestDeleteSegment(t *testing.T)
- func (f Factory) TestDeleteSegmentNotFound(t *testing.T)
- func (f Factory) TestDeleteValue(t *testing.T)
- func (f Factory) TestDeleteValueNotFound(t *testing.T)
- func (f Factory) TestFindSegmentEmpty(t *testing.T)
- func (f Factory) TestFindSegmentWithBadProcess(t *testing.T)
- func (f Factory) TestFindSegmentWithGoodProcess(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) TestFindSegmentsMapIDs(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) TestFindSegmentsPrevLinkHashBadMapID(t *testing.T)
- func (f Factory) TestFindSegmentsPrevLinkHashGoodMapID(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) TestGetMapIDsByProcess(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) TestGetValue(t *testing.T)
- func (f Factory) TestGetValueNotFound(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)
- func (f Factory) TestSaveValue(t *testing.T)
- type FilterFunc
- type MapFilterFunc
- type SegmentFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomFilterOffset ¶
func RandomFilterOffset(b *testing.B, numSegments, i int) *store.SegmentFilter
RandomFilterOffset is a a FilterFunc that create a filter with a random offset.
func RandomFilterOffsetMapID ¶
func RandomFilterOffsetMapID(b *testing.B, numSegments, i int) *store.SegmentFilter
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 ¶
func RandomFilterOffsetMapIDTags(b *testing.B, numSegments, i int) *store.SegmentFilter
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 RandomFilterOffsetMapIDs ¶
func RandomFilterOffsetMapIDs(b *testing.B, numSegments, i int) *store.SegmentFilter
RandomFilterOffsetMapIDs is a a FilterFunc that create a filter with a random offset and 2 map IDs. The map ID will be one of ten possible values.
func RandomFilterOffsetPrevLinkHash ¶
func RandomFilterOffsetPrevLinkHash(b *testing.B, numSegments, i int) *store.SegmentFilter
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 ¶
func RandomFilterOffsetPrevLinkHashTags(b *testing.B, numSegments, i int) *store.SegmentFilter
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 ¶
func RandomFilterOffsetTags(b *testing.B, numSegments, i int) *store.SegmentFilter
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 ¶
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) BenchmarkDeleteValue ¶
BenchmarkDeleteValue benchmarks deleting existing segments.
func (Factory) BenchmarkDeleteValueParallel ¶
BenchmarkDeleteValueParallel 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) BenchmarkFindSegmentsMapIDs100 ¶
BenchmarkFindSegmentsMapIDs100 benchmarks finding segments with several map IDs within 100 segments.
func (Factory) BenchmarkFindSegmentsMapIDs1000 ¶
BenchmarkFindSegmentsMapIDs1000 benchmarks finding segments with several map IDs within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapIDs10000 ¶
BenchmarkFindSegmentsMapIDs10000 benchmarks finding segments with several map IDs within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapIDs10000Parallel ¶
BenchmarkFindSegmentsMapIDs10000Parallel benchmarks finding segments with several map ID within 10000 segments.
func (Factory) BenchmarkFindSegmentsMapIDs1000Parallel ¶
BenchmarkFindSegmentsMapIDs1000Parallel benchmarks finding segments with several map ID within 1000 segments.
func (Factory) BenchmarkFindSegmentsMapIDs100Parallel ¶
BenchmarkFindSegmentsMapIDs100Parallel benchmarks finding segments with several map ID 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, filterFunc MapFilterFunc)
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, filterFunc MapFilterFunc)
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) BenchmarkGetValue ¶
BenchmarkGetValue benchmarks getting existing segments.
func (Factory) BenchmarkGetValueParallel ¶
BenchmarkGetValueParallel 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) BenchmarkSaveValue ¶
BenchmarkSaveValue benchmarks saving new segments.
func (Factory) BenchmarkSaveValueParallel ¶
BenchmarkSaveValueParallel benchmarks saving new segments in parallel.
func (Factory) RunBenchmarks ¶
RunBenchmarks runs all the benchmarks.
func (Factory) TestAddDidSaveChannel ¶
TestAddDidSaveChannel tests that AddDidSaveChannel functions properly.
func (Factory) TestBatchDeleteSegment ¶
TestBatchDeleteSegment tests what happens when you delete a segment from a batch.
func (Factory) TestBatchDeleteValue ¶
TestBatchDeleteValue tests what happens when you delete a value from a batch.
func (Factory) TestBatchSaveSegment ¶
TestBatchSaveSegment tests what happens when you write a segment in a Batch
func (Factory) TestBatchSaveValue ¶
TestBatchSaveValue tests what happens when you write a value in a Batch
func (Factory) TestBatchWriteDeleteSegment ¶
TestBatchWriteDeleteSegment tests what happens when you write a Batch with a deleted segment.
func (Factory) TestBatchWriteDeleteValue ¶
TestBatchWriteDeleteValue tests what happens when you write a Batch with a deleted value.
func (Factory) TestBatchWriteSaveSegment ¶
TestBatchWriteSaveSegment tests what happens when you write a Batch with a saved segment.
func (Factory) TestBatchWriteSaveValue ¶
TestBatchWriteSaveValue tests what happens when you write a Batch with a saved segment.
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) TestDeleteValue ¶
TestDeleteValue tests what happens when you delete an existing value.
func (Factory) TestDeleteValueNotFound ¶
TestDeleteValueNotFound tests what happens when you delete a nonexistent value.
func (Factory) TestFindSegmentEmpty ¶
TestFindSegmentEmpty tests what happens when there are no matches.
func (Factory) TestFindSegmentWithBadProcess ¶
TestFindSegmentWithBadProcess tests what happens when you search with an unexisting process name.
func (Factory) TestFindSegmentWithGoodProcess ¶
TestFindSegmentWithGoodProcess tests what happens when you search with a process name filter.
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) TestFindSegmentsMapIDs ¶
TestFindSegmentsMapIDs tests whan happens when you search for several existing map IDs.
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) TestFindSegmentsPrevLinkHashBadMapID ¶
TestFindSegmentsPrevLinkHashBadMapID tests that map IDs invalidate all segments found with the given previous link hash.
func (Factory) TestFindSegmentsPrevLinkHashGoodMapID ¶
TestFindSegmentsPrevLinkHashGoodMapID tests that map IDs match with segments found with the given previous link hash.
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) TestGetMapIDsByProcess ¶
TestGetMapIDsByProcess tests what happens when you get map IDs filtered by process name.
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) TestGetValue ¶
TestGetValue tests what happens when you get an existing segment.
func (Factory) TestGetValueNotFound ¶
TestGetValueNotFound tests what happens when you get a nonexistent segment.
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.
func (Factory) TestSaveValue ¶
TestSaveValue tests what happens when you save a new value.
type FilterFunc ¶
type FilterFunc func(b *testing.B, numSegments, i int) *store.SegmentFilter
FilterFunc is a type for a function that creates a filter for benchmarks.
type MapFilterFunc ¶
MapFilterFunc is a type for a function that creates a mapId filter for benchmarks.