go-ipfs: github.com/ipfs/go-ipfs/core/mock Index | Files

package coremock

import "github.com/ipfs/go-ipfs/core/mock"

Index

Package Files

mock.go

func MockCmdsCtx Uses

func MockCmdsCtx() (commands.Context, error)

func MockHostOption Uses

func MockHostOption(mn mocknet.Mocknet) libp2p2.HostOption

func NewMockNode Uses

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

NewMockNode constructs an IpfsNode for use in tests.

Package coremock imports 14 packages (graph) and is imported by 6 packages. Updated 2019-07-12. Refresh now. Tools for package owners.