test_util

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultServerURL  = "http://192.168.64.3:30001"
	RepoNamePrefix    = "test_"
	DefaultBranchName = "master"
	TestRepoPath      = "/var/tmp/work1"
	TestCodeScript    = []byte("print(11)" + ";")
	DefaultFilepath   = "/var/tmp/work1/train.py"
)

Functions

This section is empty.

Types

type TestConfig

type TestConfig struct {
	ServerURL *url.URL
	Repo      *ws.Repo
	Branch    *ws.Branch
	Commit    *ws.Commit
	WC        *api.WorkerClient
	RepoFs    *fs.RepoFs
}

func NewTestConfig

func NewTestConfig() (*TestConfig, error)

func (*TestConfig) Destroy

func (tc *TestConfig) Destroy() error

func (*TestConfig) SetRepoFs

func (tc *TestConfig) SetRepoFs() error

create tmp repo on local system

Jump to

Keyboard shortcuts

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