Documentation ¶
Overview ¶
Package testutils provides a set of helper functions for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
AssertError asserts the state of an error.
If isExpected is true, the function will assert that the error is not nil. If expectedErr is not empty, the function will assert that the error message matches the expected error message. If isExpected is false, the function will assert that the error is nil. The function returns true if an error was found, false otherwise.
func NewNoopLogger ¶
NewNoopLogger creates a new logger that discards all logs.
Types ¶
type InMemRepo ¶
type InMemRepo struct { Fs billy.Filesystem Repo *git.Repository Worktree *git.Worktree }
InMemRepo represents an in-memory git repository.
func NewInMemRepo ¶
NewInMemRepo creates a new in-memory git repository.
Click to show internal directories.
Click to hide internal directories.