e2e_tests

package
v0.0.0-...-51ff4bc Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitTestRepo

type GitTestRepo struct {
	RepoDir string
}

func NewTempRepo

func NewTempRepo(t *testing.T) *GitTestRepo

func (*GitTestRepo) AddFile

func (r *GitTestRepo) AddFile(t *testing.T, fp string)

func (*GitTestRepo) CommitFile

func (r *GitTestRepo) CommitFile(t *testing.T, filename string, body string) plumbing.Hash

func (*GitTestRepo) CreateFile

func (r *GitTestRepo) CreateFile(t *testing.T, filename string, body string) string

func (*GitTestRepo) Git

func (r *GitTestRepo) Git(t *testing.T, args ...string) string

func (*GitTestRepo) ReadFile

func (r *GitTestRepo) ReadFile(t *testing.T, filename string) string

type NicheGitOutput

type NicheGitOutput struct {
	ExitCode int
	Stdout   string
	Stderr   string
}

func NicheGit

func NicheGit(t *testing.T, args ...string) NicheGitOutput

func RequireNicheGit

func RequireNicheGit(t *testing.T, args ...string) NicheGitOutput

Jump to

Keyboard shortcuts

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