mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalysisAPI

type AnalysisAPI struct {
	mock.Mock
}

AnalysisAPI is an autogenerated mock type for the AnalysisAPI type

func (*AnalysisAPI) GetCoverageStatistics

func (_m *AnalysisAPI) GetCoverageStatistics(packages []string) (analysistypes.GetCoverageStatisticsOutput, error)

GetCoverageStatistics provides a mock function with given fields: packages

type CommandAPI

type CommandAPI struct {
	mock.Mock
}

CommandAPI is an autogenerated mock type for the CommandAPI type

func (*CommandAPI) CombinedOutput

func (_m *CommandAPI) CombinedOutput() ([]byte, error)

CombinedOutput provides a mock function with given fields:

func (*CommandAPI) Output

func (_m *CommandAPI) Output() ([]byte, error)

Output provides a mock function with given fields:

func (*CommandAPI) Run

func (_m *CommandAPI) Run() error

Run provides a mock function with given fields:

type ExecAPI

type ExecAPI struct {
	mock.Mock
}

ExecAPI is an autogenerated mock type for the ExecAPI type

func (*ExecAPI) Command

func (_m *ExecAPI) Command(name string, arg ...string) hostiface.CommandAPI

Command provides a mock function with given fields: name, arg

type FileInfo

type FileInfo struct {
	mock.Mock
}

FileInfo is an autogenerated mock type for the FileInfo type

func (*FileInfo) IsDir

func (_m *FileInfo) IsDir() bool

IsDir provides a mock function with given fields:

func (*FileInfo) ModTime

func (_m *FileInfo) ModTime() time.Time

ModTime provides a mock function with given fields:

func (*FileInfo) Mode

func (_m *FileInfo) Mode() os.FileMode

Mode provides a mock function with given fields:

func (*FileInfo) Name

func (_m *FileInfo) Name() string

Name provides a mock function with given fields:

func (*FileInfo) Size

func (_m *FileInfo) Size() int64

Size provides a mock function with given fields:

func (*FileInfo) Sys

func (_m *FileInfo) Sys() interface{}

Sys provides a mock function with given fields:

type OSIOAPI

type OSIOAPI struct {
	mock.Mock
}

OSIOAPI is an autogenerated mock type for the OSIOAPI type

func (*OSIOAPI) MustRemove added in v1.1.0

func (_m *OSIOAPI) MustRemove(filename string)

MustRemove provides a mock function with given fields: filename

func (*OSIOAPI) ReadDir

func (_m *OSIOAPI) ReadDir(dirname string) ([]os.FileInfo, error)

ReadDir provides a mock function with given fields: dirname

func (*OSIOAPI) ReadFile

func (_m *OSIOAPI) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

func (*OSIOAPI) WriteFile

func (_m *OSIOAPI) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile provides a mock function with given fields: filename, data, perm

type PackageAPI

type PackageAPI struct {
	mock.Mock
}

PackageAPI is an autogenerated mock type for the PackageAPI type

func (*PackageAPI) GetFileNamesForPackage

func (_m *PackageAPI) GetFileNamesForPackage(pkg string) ([]string, error)

GetFileNamesForPackage provides a mock function with given fields: pkg

func (*PackageAPI) GetPackages

func (_m *PackageAPI) GetPackages(exclusionPatterns []string) ([]string, error)

GetPackages provides a mock function with given fields: exclusionPatterns

type ProfileAPI

type ProfileAPI struct {
	mock.Mock
}

ProfileAPI is an autogenerated mock type for the ProfileAPI type

func (*ProfileAPI) BuildAndSaveCoverageProfile

func (_m *ProfileAPI) BuildAndSaveCoverageProfile(allPackages pckg.Group, coverageProfileName string) error

BuildAndSaveCoverageProfile provides a mock function with given fields: allPackages, coverageProfileName

func (*ProfileAPI) OutputPercentageFile

func (_m *ProfileAPI) OutputPercentageFile(coveragePercentage float64) error

OutputPercentageFile provides a mock function with given fields: coveragePercentage

type RawAPI

type RawAPI struct {
	mock.Mock
}

RawAPI is an autogenerated mock type for the RawAPI type

func (*RawAPI) AggregateRawPackageAnalysisData

func (_m *RawAPI) AggregateRawPackageAnalysisData(pkg string, rawPkgCoverageData []string) (*pckg.Stats, error)

AggregateRawPackageAnalysisData provides a mock function with given fields: pkg, rawPkgCoverageData

func (*RawAPI) GetRawCoverageAnalysisForPackage

func (_m *RawAPI) GetRawCoverageAnalysisForPackage(pkg string) ([]string, bool, error)

GetRawCoverageAnalysisForPackage provides a mock function with given fields: pkg

type ReportAPI

type ReportAPI struct {
	mock.Mock
}

ReportAPI is an autogenerated mock type for the ReportAPI type

func (*ReportAPI) BuildCoverageReport

func (_m *ReportAPI) BuildCoverageReport(allPackages pckg.Group, exclusionPatterns []string) (string, error)

BuildCoverageReport provides a mock function with given fields: allPackages, exclusionPatterns

Jump to

Keyboard shortcuts

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