package
0.133.0
Repository: https://github.com/edmondfrank/gitally.git
Documentation: pkg.go.dev

# Functions

AddWorktree creates a worktree in the repository path for tests.
AssertFileNotExists asserts true if the file doesn't exist, false otherwise.
AuthorsEqual tests if two `CommitAuthor`s are equal.
ConfigureGitalySSH configures the gitaly-ssh command for tests.
ConfigureRuby configures Ruby settings for test purposes at run time.
Context returns a cancellable context.
CreateCommit makes a new empty commit and updates the named branch to point to it.
CreateCommitInAlternateObjectDirectory runs a command such that its created objects will live in an alternate objects directory.
CreateRemoteBranch creates a new remote branch.
CreateTag creates a new tag.
FindLocalBranchCommitAuthorsEqual tests if two `FindLocalBranchCommitAuthor`s are equal.
FindLocalBranchResponsesEqual tests if two `FindLocalBranchResponse`s are equal.
GetGitEnvData reads and returns the content of testGitEnv.
GetRepositoryRefs gives a list of each repository ref as a string.
GetTemporaryGitalySocketFileName will return a unique, useable socket file name.
GitalyServersMetadata returns a metadata pair for gitaly-servers to be used in inter-gitaly operations.
GitCommitEqual tests if two `GitCommit`s are equal.
GitlabTestStoragePath returns the storage path to the gitlab-test repo.
InitBareRepo creates a new bare repository.
InitRepoWithWorktree creates a new repository with a worktree.
MustHaveNoChildProcess panics if it finds a running or finished child process.
MustReadFile returns the content of a file or fails at once.
MustRunCommand runs a command with an optional standard input and returns the standard output, or fails.
NewTestGrpcServer creates a GRPC Server for testing purposes.
NewTestLogger created a logrus hook which can be used with testing logs.
NewTestRepo creates a bare copy of the test repository.
NewTestRepoWithWorktree creates a copy of the test repository with a worktree.
RequireGrpcError asserts the passed err is of the same code as expectedCode.
TestRepository returns the `Repository` object for the gitlab-test repo.

# Constants

TestRelativePath is the path inside its storage of the gitlab-test repo.
TestRelativePath is the path inside its storage of the gitlab-test repo.
TestRelativePath is the path inside its storage of the gitlab-test repo.

# Structs

CreateCommitOpts holds extra options for CreateCommit.
CreateTagOpts holds extra options for CreateTag.