testing_utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileContainsString

func CheckFileContainsString(t *testing.T, fileName string, search string)

func PrepareCommandForTesting

func PrepareCommandForTesting(command *cobra.Command, args ...string) *bytes.Buffer

func ReadBuffer

func ReadBuffer(t *testing.T, outputBuffer *bytes.Buffer) string

func SkipTestIfAzureCliMissing

func SkipTestIfAzureCliMissing(suite *suite.Suite, executor ExecuteCommandAndGetString)

func SkipTestIfOnlyShortTests

func SkipTestIfOnlyShortTests(t *testing.T)

Types

type ExecuteCommandAndGetString

type ExecuteCommandAndGetString func(command string) (output string, err error)

ExecuteCommandAndGetString this type only exists to remove any circular dependencies between packages, for example executor_tests depends on this, and in turn this packages uses the executor to run commands

Jump to

Keyboard shortcuts

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