package
0.0.0-20250312033235-bd4f568112dc
Repository: https://github.com/sourcegraph/src-cli.git
Documentation: pkg.go.dev
# Functions
Commands defines a set of expected commands for the given test.
Handle should be called from TestMain.
NewGlob is a convenience function that creates an Expectation that validates commands using a glob validator (as created by NewGlobValidator) and implements the given behaviour.
NewGlobValidator creates a validation function that will validate a command using glob syntax against the given name and arguments.
NewLiteral is a convenience function that creates an Expectation that validates commands literally.
# Variables
Success defines a command behaviour that returns a 0 exit code and no other output.
# Structs
Behaviour defines the behaviour of the mocked command.
Expectation represents a single command invocation.
# Type aliases
CommandValidator is used to validate the command line that is would be executed.