cmd

package
v0.9.4 Latest Latest
Warning

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

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

Documentation

Overview

Package cmd defines the Iter8 CLI commands and their flags.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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 current semver.
	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
JackTT - Gopher 🇻🇳