e2e

package
v2.39.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package e2e contains e2e test related build logic

Index

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

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

type DirectoryReader = func(name string) ([]os.DirEntry, error)

DirectoryReader abstracts os.ReadDir.

type DirectoryWalker

type DirectoryWalker = func(string, filepath.WalkFunc) error

DirectoryWalker abstracts filepath.Walk.

type FileReader

type FileReader = func(name string) ([]byte, error)

FileReader abstracts os.ReadFile.

type RunGoCommand

type RunGoCommand = func(log zerolog.Logger, args ...string) error

RunGoCommand abstracts function that invokes go cmd.

type StubFileInfo

type StubFileInfo struct {
	FileName    string
	IsDirectory bool
}

StubFileInfo implements os.FileInfo and os.DirEntry.

func (StubFileInfo) Info

func (mfi StubFileInfo) Info() (os.FileInfo, error)

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() any

func (StubFileInfo) Type

func (mfi StubFileInfo) Type() os.FileMode

Jump to

Keyboard shortcuts

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