Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestProvider ¶
type TestProvider struct {
ContextFn func() (context.Context, context.CancelFunc)
LoggerFn func() *log.Logger
}
TestProvider implements cli.Provider for testing usage.
func New ¶
func New(ms ...func(*TestProvider)) *TestProvider
New creates a testing cli provider with optional mutate functions.
func (*TestProvider) Context ¶
func (tp *TestProvider) Context() (context.Context, context.CancelFunc)
func (*TestProvider) Logger ¶
func (tp *TestProvider) Logger() *log.Logger
Click to show internal directories.
Click to hide internal directories.