helper

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckforSynkToken

func CheckforSynkToken()

CheckforSynkToken Checks for Snyk Token var in env

func Cleanup

func Cleanup(path string) error

Cleanup global cleanup function

func CleanupSuite

func CleanupSuite() error

CleanupSuite deletes files used by tests

func CmdRunner

func CmdRunner(program string, args ...string) *gexec.Session

CmdRunner is the function used to run a command

func CmdShouldFailWithExit1

func CmdShouldFailWithExit1(program string, args ...string) string

CmdShouldFailWithExit1 asserts the command passed with exit 1

func CmdShouldPassWithExit1

func CmdShouldPassWithExit1(program string, args ...string) string

CmdShouldPassWithExit1 asserts the command passed with exit 1

func CmdShouldPassWithExit2

func CmdShouldPassWithExit2(program string, args ...string) string

CmdShouldPassWithExit2 asserts the command passed with exit 2

func CmdShouldPassWithoutError

func CmdShouldPassWithoutError(program string, args ...string) string

CmdShouldPassWithoutError asserts if the command is passed without error

func CommonBeforeEach

func CommonBeforeEach(file string, target string) (string, string)

CommonBeforeEach is a common before each function

func CopyContentstoTarget

func CopyContentstoTarget(filename string, target string) error

CopyContentstoTarget Copies the files to target

func CreateDataDir

func CreateDataDir() error

CreateDataDir creates data directory

func Getabspath

func Getabspath(path string) (string, error)

Getabspath Gets the Absolute Path

func PrintWithGinkgo

func PrintWithGinkgo(data string)

PrintWithGinkgo is the function used for logging

Types

This section is empty.

Jump to

Keyboard shortcuts

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