fake

package
v0.0.0-...-3de72e3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fake defines fakes to be used for testing integration with the input processor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClangExecutor

type ClangExecutor struct {
	InputFiles     []string
	ToolchainFiles []string
	Err            error
}

ClangExecutor is a fake executor used to replace actual execution of clang in the process of determining inputs.

func (*ClangExecutor) Execute

func (e *ClangExecutor) Execute(ctx context.Context, cmd *command.Command) (string, string, error)

Execute fakes execution of a command and returns outputs predefined in the ClangExecutor.

Jump to

Keyboard shortcuts

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