Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Git ¶
Git is a type that represents an instance of the Git version control system. It provides methods for executing Git commands and asserting the state of the repository.
func (Git) AssertBranch ¶
AssertBranch asserts that the current branch of a Git repository matches the given branch name testing.T.
func (Git) AssertBranchPrefix ¶
AssertBranchPrefix asserts that the current Git branch has the specified prefix. It takes a testing.T instance and a string as arguments. If the prefix is not found in the current branch name, AssertBranchPrefix will fail the test with a descriptive error message.
func (Git) AssertCommit ¶
AssertCommit asserts that the last commit message matches the provided `git.Commit`. It takes a `*testing.T` and a `git.Commit` as arguments. If the assertion fails, it will fail the test.