cmd

package
Version: v0.10.22 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package cmd defines the Iter8 CLI commands and their flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertGoldenBytes added in v0.9.3

func AssertGoldenBytes(t TestingT, actual []byte, filename string)

AssertGoldenBytes asserts that the give actual content matches the contents of the given filename

func AssertGoldenFile added in v0.9.3

func AssertGoldenFile(t TestingT, actualFileName string, expectedFilename string)

AssertGoldenFile asserts that the content of the actual file matches the contents of the expected file

func AssertGoldenString added in v0.9.3

func AssertGoldenString(t TestingT, actual, filename string)

AssertGoldenString asserts that the given string matches the contents of the given file.

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type BuildInfo added in v0.9.0

type BuildInfo struct {
	// Version is the semantic version
	Version string `json:"version,omitempty"`
	// GitCommit is the git sha1.
	GitCommit string `json:"git_commit,omitempty"`
	// GoVersion is the version of the Go compiler used to compile Iter8.
	GoVersion string `json:"go_version,omitempty"`
}

BuildInfo describes the compile time information.

type HelperT added in v0.9.3

type HelperT interface {
	Helper()
}

HelperT describes a test with a helper function

type TestingT added in v0.9.3

type TestingT interface {
	Fatal(...interface{})
	Fatalf(string, ...interface{})
	HelperT
}

TestingT describes a testing object compatible with the critical functions from the testing.T type

Jump to

Keyboard shortcuts

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