testutil

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package testutil contains various util functions for testing.

Index

Constants

This section is empty.

Variables

View Source
var (
	// CommandRunnerImpl is the command runner impl currently being used by the
	// package. Exists for testing purposes.
	CommandRunnerImpl cmd.CommandRunner = cmd.RealCommandRunner{}
)

Functions

func AssertContentsEqual

func AssertContentsEqual(pathA, pathB string) error

AssertContentsEqual checks that there's no difference between two directories/files.

func AssertGitBranches

func AssertGitBranches(gitRepo string, branches []string) error

AssertGitBranches asserts that the git repo has the given branches (it may have others, too).

func AssertGitBranchesExact

func AssertGitBranchesExact(gitRepo string, branches []string) error

AssertGitBranchesExact asserts that the git repo has only the correct branches.

Types

This section is empty.

Jump to

Keyboard shortcuts

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