coremock

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyHostOption

func EmptyHostOption() p2p2.HostOption

saving experimental code to try and make mocknet based testing to work. in case i may get back to fix it later.

some tests that rely on mocknet are broken by the migration to fx based Dms3Node construction.

func EmptyPublicNode

func EmptyPublicNode(ctx context.Context) (*core.Dms3Node, error)

func MockCmdsCtx

func MockCmdsCtx() (commands.Context, error)

func MockHostOption

func MockHostOption(mn mocknet.Mocknet) p2p2.HostOption

func MockPublicNode

func MockPublicNode(ctx context.Context, mn mocknet.Mocknet) (*core.Dms3Node, error)

func NewMeshMockNodeNet

func NewMeshMockNodeNet(size int) (mocknet.Mocknet, error)

NewMeshMockNodeNet constructs an Dms3Node for use in tests.

func NewMockNode

func NewMockNode() (*core.Dms3Node, error)

NewMockNode constructs an Dms3Node for use in tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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