goplugintestutils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() (string, string, error)

Build compiles and return path to insgorund and insgocc binaries.

func BuildPreprocessor added in v0.9.0

func BuildPreprocessor() (string, error)

func PrependGoPath

func PrependGoPath(path string) string

PrependGoPath prepends `path` to GOPATH environment variable accounting for possibly for default value. Returns new value. NOTE: that environment is not changed

func StartInsgorund added in v0.6.2

func StartInsgorund(cmdPath, lProto, listen, upstreamProto, upstreamAddr string, notifyLongExecution bool, combinedOutputPath string) (func(), error)

StartInsgorund starts `insgorund` process

func WriteFile

func WriteFile(dir string, name string, text string) error

WriteFile dumps `text` into file named `name` into directory `dir`. Creates directory if needed as well as file

Types

type BuildOptions added in v1.1.0

type BuildOptions struct {
	PanicIsLogicalError bool
}

type ContractsBuilder

type ContractsBuilder struct {
	IccPath string

	Prototypes map[string]*insolar.Reference
	Codes      map[string]*insolar.Reference
	// contains filtered or unexported fields
}

ContractsBuilder for tests

func NewContractBuilder

func NewContractBuilder(icc string, am artifacts.Client, pa pulse.Accessor, jc jet.Coordinator) *ContractsBuilder

NewContractBuilder returns a new `ContractsBuilder`, takes in: path to tmp directory, artifact manager, ...

func (*ContractsBuilder) Build

func (cb *ContractsBuilder) Build(ctx context.Context, contracts map[string]string, options BuildOptions) error

Build ...

func (*ContractsBuilder) Clean

func (cb *ContractsBuilder) Clean()

Jump to

Keyboard shortcuts

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