fixtures

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory() string

Directory returns the path to test fixtures.

func Initialize added in v0.7.10

func Initialize(baseDir string, projects []Project, initializer ProjectInitializer)

Initialize clones and initializes a fixture into a directory.

Types

type Project

type Project struct {
	Name   string
	URL    string
	Commit string
	// Ref points to a particular reference. It will always be preferred over Commit
	Ref           string
	ModuleOptions map[string]interface{}
	Env           map[string]string
}

Project describes how to download, build, and analyse a fixture.

type ProjectInitializer added in v0.7.12

type ProjectInitializer func(p Project, projectDir string) error

ProjectInitializer defines how a single project should be initialized after it has been cloned.

Jump to

Keyboard shortcuts

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