Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContainsMatch ¶ added in v0.14.1
func CreateMockCommand ¶ added in v0.7.1
func CreateMockCommand(t *testing.T, swappers []*CommandSwapper) func(cmd string, args ...string) *exec.Cmd
CreateMockCommand creates a command function that will verify its receiving the right sequence of commands from lazygit
func GenerateRepo ¶
GenerateRepo generates a repo from test/repos and changes the directory to be inside the newly made repo
Types ¶
type CommandSwapper ¶ added in v0.7.1
CommandSwapper takes a command, verifies that it is what it's expected to be and then returns a replacement command that will actually be called by the os
func (*CommandSwapper) SwapCommand ¶ added in v0.7.1
SwapCommand verifies the command is what we expected, and swaps it out for a different command
Click to show internal directories.
Click to hide internal directories.