test

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextualExtendedProvidersShouldOverrideChainLevelOnesTest

func ContextualExtendedProvidersShouldOverrideChainLevelOnesTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func ContextualExtendedProvidersShouldUnionUpWithChainLevelOnesTest

func ContextualExtendedProvidersShouldUnionUpWithChainLevelOnesTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func ExtendedProviderShouldHaveOwnMetadataTest

func ExtendedProviderShouldHaveOwnMetadataTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func ExtendedProviderShouldInheritMetadataOfMainProviderTest

func ExtendedProviderShouldInheritMetadataOfMainProviderTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func FindIndexTest

func FindIndexTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func GetProviderTest

func GetProviderTest(t *testing.T, c client.Finder, providerID peer.ID)

func GetStatsTest

func GetStatsTest(ctx context.Context, t *testing.T, ind indexer.Interface, refreshStats func(), c client.Finder)

func InitIndex

func InitIndex(t *testing.T, withCache bool) indexer.Interface

InitIndex initialize a new indexer engine.

func InitPebbleIndex

func InitPebbleIndex(t *testing.T, withCache bool) indexer.Interface

InitPebbleIndex initialize a new indexer engine using pebbel with cache.

func InitRegistry

func InitRegistry(t *testing.T) *registry.Registry

func InitRegistryWithRestrictivePolicy

func InitRegistryWithRestrictivePolicy(t *testing.T, restrictive bool) *registry.Registry

InitRegistry initializes a new registry

func ListProvidersTest

func ListProvidersTest(t *testing.T, c client.Finder, providerID peer.ID)

func MainProviderChainRecordIsIncludedIfItsMetadataIsDifferentTest

func MainProviderChainRecordIsIncludedIfItsMetadataIsDifferentTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func MainProviderContextRecordIsIncludedIfItsMetadataIsDifferentTest

func MainProviderContextRecordIsIncludedIfItsMetadataIsDifferentTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func ProvidersShouldBeUnaffectedByExtendedProvidersOfEachOtherTest

func ProvidersShouldBeUnaffectedByExtendedProvidersOfEachOtherTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

func ReframeFindIndexTest

func ReframeFindIndexTest(ctx context.Context, t *testing.T, c client.Finder, rc *reframeclient.Client, ind indexer.Interface, reg *registry.Registry)

func Register

func Register(ctx context.Context, t *testing.T, reg *registry.Registry) peer.ID

func RemoveProviderTest

func RemoveProviderTest(ctx context.Context, t *testing.T, c client.Finder, ind indexer.Interface, reg *registry.Registry)

Types

This section is empty.

Jump to

Keyboard shortcuts

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