Versions in this module Expand all Collapse all v0 v0.1.1 May 2, 2023 Changes in this version + var NotMockedValue notMocked = notMocked + func ConcatLines(lines []string) string + func PtrTo[T any](val T) *T + type BoolArg int + const Any + const False + const True + func (b BoolArg) ToBoolList() []bool + type MockCommandExecutor struct + func (m *MockCommandExecutor) Run(ctx context.Context, command string, args []string, settings ...cmd.Setting) (int, error) + func (m *MockCommandExecutor) RunQuiet(ctx context.Context, command string, args ...string) (int, error) + func (m *MockCommandExecutor) RunStdout(ctx context.Context, command string, args ...string) (int, error) + type MockFileSystem struct + func (m *MockFileSystem) DeleteFile(filename string) (bool, error) + func (m *MockFileSystem) FileExists(filename string) (bool, error) + func (m *MockFileSystem) GetLocalExecutable(name string) (string, error) + func (m *MockFileSystem) ReadDirRecursive(path string, depth int, strictDepth bool) ([]common.ReadDirEntry, error) + func (m *MockFileSystem) ReadFileLines(filename string) ([]string, error) + func (m *MockFileSystem) WriteFile(filename string, content []byte) error + func (m *MockFileSystem) WriteLockFileFunc(filename string, writeFunc func(io.Writer) error) (common.LockFile, error) + type MockGitHelper struct + func (m *MockGitHelper) CloneBareRepo(ctx context.Context, url string, destination string) error + func (m *MockGitHelper) CreateBundle(ctx context.Context, repoDir string, filename string) (bool, error) + func (m *MockGitHelper) CreateBundleFromRefs(ctx context.Context, repoDir string, filename string, refs map[string]string) error + func (m *MockGitHelper) CreateIncrementalBundle(ctx context.Context, repoDir string, filename string, prereqs []string) (bool, error) + func (m *MockGitHelper) GetRemoteUrl(ctx context.Context, repoDir string) (string, error) + func (m *MockGitHelper) UpdateBareRepo(ctx context.Context, repoDir string) error + type MockLockFile struct + func (m *MockLockFile) Commit() error + func (m *MockLockFile) Rollback() error + type MockTraceLogger struct + func (l *MockTraceLogger) ChildProcess(ctx context.Context, cmd *exec.Cmd) (func(error), func()) + func (l *MockTraceLogger) Error(ctx context.Context, err error) error + func (l *MockTraceLogger) Errorf(ctx context.Context, format string, a ...any) error + func (l *MockTraceLogger) Exit(ctx context.Context, exitCode int) + func (l *MockTraceLogger) Fatal(ctx context.Context, err error) + func (l *MockTraceLogger) Fatalf(ctx context.Context, format string, a ...any) + func (l *MockTraceLogger) LogCommand(ctx context.Context, commandName string) context.Context + func (l *MockTraceLogger) Region(ctx context.Context, category string, label string) (context.Context, func()) + type MockUserProvider struct + func (m *MockUserProvider) CurrentUser() (*user.User, error) + type Pair struct + First T + Second R + func NewPair[T any, R any](first T, second R) Pair[T, R] + type TestReadDirEntry struct + InfoVal fs.FileInfo + IsDirVal bool + NameVal string + PathVal string + TypeVal fs.FileMode + func (e TestReadDirEntry) Info() (fs.FileInfo, error) + func (e TestReadDirEntry) IsDir() bool + func (e TestReadDirEntry) Name() string + func (e TestReadDirEntry) Path() string + func (e TestReadDirEntry) Type() fs.FileMode