Documentation ¶
Overview ¶
Package storetestcases defines test cases to test stores.
Index ¶
- func RandomFilterOffset(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetMapID(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetMapIDTags(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetMapIDs(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetPrevLinkHash(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetPrevLinkHashTags(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomFilterOffsetTags(b *testing.B, numLinks, i int) *store.SegmentFilter
- func RandomLink(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomLinkMapID(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomLinkMapIDTags(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomLinkPrevLinkHash(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomLinkPrevLinkHashTags(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomLinkTags(b *testing.B, numLinks, i int) *chainscript.Link
- func RandomPaginationOffset(b *testing.B, numLinks, i int) *store.MapFilter
- type CreateLinkFunc
- type Factory
- func (f Factory) BenchmarkCreateLink(b *testing.B)
- func (f Factory) BenchmarkCreateLinkParallel(b *testing.B)
- func (f Factory) BenchmarkDeleteValue(b *testing.B)
- func (f Factory) BenchmarkDeleteValueParallel(b *testing.B)
- func (f Factory) BenchmarkFindSegments(b *testing.B, numLinks int, createLinkFunc CreateLinkFunc, ...)
- 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, numLinks int, createLinkFunc CreateLinkFunc, ...)
- 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, numLinks int, createLinkFunc CreateLinkFunc, ...)
- 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, numLinks int, createLinkFunc CreateLinkFunc, ...)
- 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) BenchmarkSetValue(b *testing.B)
- func (f Factory) BenchmarkSetValueParallel(b *testing.B)
- func (f Factory) RunKeyValueStoreBenchmarks(b *testing.B)
- func (f Factory) RunKeyValueStoreTests(t *testing.T)
- func (f Factory) RunStoreBenchmarks(b *testing.B)
- func (f Factory) RunStoreTests(t *testing.T)
- func (f Factory) TestAdapterConfig(t *testing.T)
- func (f Factory) TestBatch(t *testing.T)
- func (f Factory) TestCreateLink(t *testing.T)
- func (f Factory) TestEvidenceStore(t *testing.T)
- func (f Factory) TestFindSegments(t *testing.T)
- func (f Factory) TestGetInfo(t *testing.T)
- func (f Factory) TestGetMapIDs(t *testing.T)
- func (f Factory) TestGetSegment(t *testing.T)
- func (f Factory) TestKeyValueStore(t *testing.T)
- func (f Factory) TestStoreEvents(t *testing.T)
- type FilterFunc
- type MapFilterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomFilterOffset ¶
func RandomFilterOffset(b *testing.B, numLinks, i int) *store.SegmentFilter
RandomFilterOffset is a a FilterFunc that create a filter with a random offset.
func RandomFilterOffsetMapID ¶
func RandomFilterOffsetMapID(b *testing.B, numLinks, 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, numLinks, 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, numLinks, 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, numLinks, 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, numLinks, 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, numLinks, 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 RandomLink ¶ added in v0.2.0
RandomLink creates a link with random data.
func RandomLinkMapID ¶ added in v0.2.0
RandomLinkMapID is a CreateLinkFunc that creates a random link with map ID. The map ID will be one of ten possible values.
func RandomLinkMapIDTags ¶ added in v0.2.0
RandomLinkMapIDTags is a CreateLinkFunc that creates a random link 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 RandomLinkPrevLinkHash ¶ added in v0.2.0
RandomLinkPrevLinkHash is a CreateLinkFunc that creates a random link with previous link hash. The previous link hash will be one of ten possible values.
func RandomLinkPrevLinkHashTags ¶ added in v0.2.0
RandomLinkPrevLinkHashTags is a CreateLinkFunc that creates a random link 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.
func RandomLinkTags ¶ added in v0.2.0
RandomLinkTags is a CreateLinkFunc that creates a random link with tags. The tags will contain one of ten possible values.
Types ¶
type CreateLinkFunc ¶ added in v0.2.0
CreateLinkFunc is a type for a function that creates a link for benchmarks.
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) // NewKeyValueStore creates a KeyValueStore. // If your store implements the KeyValueStore interface, // you need to implement this method. NewKeyValueStore func() (store.KeyValueStore, error) // FreeKeyValueStore is an optional function to free // a KeyValueStore adapter. FreeKeyValueStore func(adapter store.KeyValueStore) }
Factory wraps functions to allocate and free an adapter, and is used to run the tests on an adapter.
func (Factory) BenchmarkCreateLink ¶ added in v0.2.0
BenchmarkCreateLink benchmarks creating new links.
func (Factory) BenchmarkCreateLinkParallel ¶ added in v0.2.0
BenchmarkCreateLinkParallel benchmarks creating new links 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, numLinks int, createLinkFunc CreateLinkFunc, 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, numLinks int, createLinkFunc CreateLinkFunc, 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, numLinks int, createLinkFunc CreateLinkFunc, 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 gettiBenchmarkFindSegmentsPrevLinkHashTags100Parallelng map IDs within 100 segments in parallel.
func (Factory) BenchmarkGetMapIDsParallel ¶
func (f Factory) BenchmarkGetMapIDsParallel(b *testing.B, numLinks int, createLinkFunc CreateLinkFunc, 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 values.
func (Factory) BenchmarkGetValueParallel ¶
BenchmarkGetValueParallel benchmarks getting existing values in parallel.
func (Factory) BenchmarkSetValue ¶ added in v0.2.0
BenchmarkSetValue benchmarks saving new values.
func (Factory) BenchmarkSetValueParallel ¶ added in v0.2.0
BenchmarkSetValueParallel benchmarks saving new values in parallel.
func (Factory) RunKeyValueStoreBenchmarks ¶ added in v0.2.0
RunKeyValueStoreBenchmarks runs all the benchmarks for the key-value store interface.
func (Factory) RunKeyValueStoreTests ¶ added in v0.2.0
RunKeyValueStoreTests runs all the tests for the key value store interface.
func (Factory) RunStoreBenchmarks ¶ added in v0.2.0
RunStoreBenchmarks runs all the benchmarks for the store adapter interface.
func (Factory) RunStoreTests ¶ added in v0.2.0
RunStoreTests runs all the tests for the store adapter interface.
func (Factory) TestAdapterConfig ¶ added in v0.3.1
TestAdapterConfig tests the implementation of the AdapterConfig interface. Stores that don't implement this interface are skipped.
func (Factory) TestCreateLink ¶ added in v0.2.0
TestCreateLink tests what happens when you create a new link.
func (Factory) TestEvidenceStore ¶ added in v0.2.0
TestEvidenceStore runs all tests for the store.EvidenceStore interface
func (Factory) TestFindSegments ¶
TestFindSegments tests what happens when you search for segments with various filters.
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.
func (Factory) TestGetSegment ¶
TestGetSegment tests what happens when you get a segment.
func (Factory) TestKeyValueStore ¶ added in v0.2.0
TestKeyValueStore runs all tests for the store.KeyValueStore interface
func (Factory) TestStoreEvents ¶ added in v0.2.0
TestStoreEvents tests store channel event notifications.
type FilterFunc ¶
type FilterFunc func(b *testing.B, numLinks, i int) *store.SegmentFilter
FilterFunc is a type for a function that creates a filter for benchmarks.