Documentation
¶
Index ¶
- func AddLinesToFileAtBreakPoint(t *testing.T, filePath string, linesToAdd []string, breakPoint string, ...)
- func AppendLines(t *testing.T, filePath string, linesToAdd []string)
- func CopyTestdataDir(t *testing.T, name string) string
- func GetFindings(t *testing.T, cifuzz string, dir string) []*finding.Finding
- func InstallCIFuzzInTemp(t *testing.T) string
- func ModifyFuzzTestToCallFunction(t *testing.T, fuzzTestPath string)
- func TerminateOnSignal(t *testing.T, cmd *executil.Cmd)
- func TestBundle(t *testing.T, dir string, cifuzz string, args ...string)
- func TestRemoteRun(t *testing.T, dir string, cifuzz string, args ...string)
- type CIFuzzRunner
- type CommandOptions
- type MockServer
- type RunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLinesToFileAtBreakPoint ¶
func AddLinesToFileAtBreakPoint(t *testing.T, filePath string, linesToAdd []string, breakPoint string, addAfterBreakpoint bool)
AddLinesToFileAtBreakPoint adds the given lines before or after the breakpoint to the file at the given path.
func CopyTestdataDir ¶
CopyTestdataDir copies the "testdata" folder in the current working directory to a temporary directory called "cifuzz-<name>-testdata" and returns the path.
func InstallCIFuzzInTemp ¶
InstallCIFuzzInTemp creates an installation builder and installs cifuzz in a temp folder and returns its path.
Types ¶
type CIFuzzRunner ¶
func (*CIFuzzRunner) Command ¶
func (r *CIFuzzRunner) Command(t *testing.T, command string, opts *CommandOptions) []string
Command runs "cifuzz <command> <args>" and returns any indented lines which the command prints to stdout (which we expect to be lines which should be added to some source or config file).
func (*CIFuzzRunner) Run ¶
func (r *CIFuzzRunner) Run(t *testing.T, opts *RunOptions)
type CommandOptions ¶
type MockServer ¶
func StartMockServer ¶
func StartMockServer(t *testing.T, projectName, artifactsName string) *MockServer
Click to show internal directories.
Click to hide internal directories.