testutil

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const PatchId = "58d156352cfeb61064cf08b3"

Variables

This section is empty.

Functions

func AddTestIndexes

func AddTestIndexes(collection string, unique, sparse bool, key ...string) error

AddTestIndexes drops and adds indexes for a given collection

func CleanupAPITestData

func CleanupAPITestData() error

func CreateTestLocalConfig

func CreateTestLocalConfig(testSettings *evergreen.Settings, projectName, projectPath string) error

Creates a project ref local config that can be used for testing, with the string identifier given and the local config from a path

func SetupPatches

func SetupPatches(patchMode PatchTestMode, b *build.Build, patches ...PatchRequest) (*patch.Patch, error)

Types

type PatchRequest

type PatchRequest struct {
	ModuleName string
	FilePath   string
	Githash    string
}

type PatchTestMode

type PatchTestMode int
const (
	NoPatch PatchTestMode = iota
	InlinePatch
	ExternalPatch
)

func (PatchTestMode) String

func (m PatchTestMode) String() string

type TestModelData

type TestModelData struct {
	Task       *task.Task
	Build      *build.Build
	Host       *host.Host
	TaskConfig *model.TaskConfig
}

func SetupAPITestData

func SetupAPITestData(testConfig *evergreen.Settings, taskDisplayName string, variant string, projectFile string, patchMode PatchTestMode) (*TestModelData, error)

Jump to

Keyboard shortcuts

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