goplugintestutils

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 24 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

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 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) error

Build ...

func (*ContractsBuilder) Clean

func (cb *ContractsBuilder) Clean()

NotifyAboutPulse deletes tmp directory used for contracts building

Jump to

Keyboard shortcuts

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