scripts

package
v0.0.0-...-e5f8d4b Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecScript

func ExecScript(t *testing.T, p Params, script string) string

func WithBranch

func WithBranch(b string) func(opts *InitOptions) error

Types

type InitOptions

type InitOptions struct {
	Name   string
	Branch string
}

type Params

type Params struct {
	Dir string
	Env []string
}

type Repository

type Repository struct {
	Dir string
}

func Init

func Init(t *testing.T, optFunc ...func(*InitOptions) error) Repository

Init initialize a repository and return its path

func (*Repository) Checkout

func (r *Repository) Checkout(t *testing.T, branch string)

func (*Repository) CreateBranch

func (r *Repository) CreateBranch(t *testing.T, branches ...string)

Jump to

Keyboard shortcuts

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