Documentation
¶
Overview ¶
Package e2e contains e2e test related build logic
Description: This file contains stubs for unit tests.
Index ¶
- func BuildE2ETestPackages(log zerolog.Logger, packagePaths []string, binDir string, ...) error
- func GetE2eTestPaths(rootDir string, walk DirectoryWalker, readDir DirectoryReader, ...) ([]string, error)
- type DirectoryReader
- type DirectoryWalker
- type FileReader
- type RunGoCommand
- type StubFileInfo
- func (mfi StubFileInfo) Info() (os.FileInfo, error)
- func (mfi StubFileInfo) IsDir() bool
- func (mfi StubFileInfo) ModTime() time.Time
- func (mfi StubFileInfo) Mode() os.FileMode
- func (mfi StubFileInfo) Name() string
- func (mfi StubFileInfo) Size() int64
- func (mfi StubFileInfo) Sys() interface{}
- func (mfi StubFileInfo) Type() os.FileMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildE2ETestPackages ¶
func BuildE2ETestPackages(log zerolog.Logger, packagePaths []string, binDir string, runGoCommand RunGoCommand) error
BuildE2ETestPackages buils e2e packages for given package paths nolint:gocritic // Why: hugeParam: 89 bytes is not "huge"
func GetE2eTestPaths ¶
func GetE2eTestPaths(rootDir string, walk DirectoryWalker, readDir DirectoryReader, readFile FileReader) ([]string, error)
GetE2eTestPaths returns list of paths of packages that contain at least one go file with or_e2e in it
Types ¶
type DirectoryReader ¶
DirectoryReader abstracts os.ReadDir
type DirectoryWalker ¶
DirectoryWalker abstracts filepath.Walk
type FileReader ¶
FileReader abstracts os.ReadFile
type RunGoCommand ¶
RunGoCommand abstracts function that invokes go cmd
type StubFileInfo ¶
StubFileInfo implements os.FileInfo and os.DirEntry
func (StubFileInfo) IsDir ¶
func (mfi StubFileInfo) IsDir() bool
func (StubFileInfo) ModTime ¶
func (mfi StubFileInfo) ModTime() time.Time
func (StubFileInfo) Mode ¶
func (mfi StubFileInfo) Mode() os.FileMode
func (StubFileInfo) Name ¶
func (mfi StubFileInfo) Name() string
func (StubFileInfo) Size ¶
func (mfi StubFileInfo) Size() int64
func (StubFileInfo) Sys ¶
func (mfi StubFileInfo) Sys() interface{}
func (StubFileInfo) Type ¶
func (mfi StubFileInfo) Type() os.FileMode
Click to show internal directories.
Click to hide internal directories.