Documentation
¶
Overview ¶
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy provides a proxy of go built-in, or third-party packages to make easier to test.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Package proxy is a generated GoMock package.
Index ¶
- type Buffer
- type Cobra
- type Command
- type DB
- type Debug
- type Echo
- type Echos
- type Envconfig
- type File
- type FlagSet
- type Group
- type Gzip
- type GzipReader
- type Http
- type Io
- type Json
- type Keyboard
- type Logger
- type MockBuffer
- type MockBufferMockRecorder
- type MockCobra
- type MockCobraMockRecorder
- type MockCommand
- func (m *MockCommand) AddCommand(cmds ...Command)
- func (m *MockCommand) EXPECT() *MockCommandMockRecorder
- func (m *MockCommand) ExecuteContext(ctx context.Context) error
- func (m *MockCommand) Flags() FlagSet
- func (m *MockCommand) GetCommand() *cobra.Command
- func (m *MockCommand) PersistentFlags() FlagSet
- func (m *MockCommand) RunE(cmd *cobra.Command, args []string) error
- func (m *MockCommand) SetAliases(s []string)
- func (m *MockCommand) SetArgs(f cobra.PositionalArgs)
- func (m *MockCommand) SetHelpTemplate(s string)
- func (m *MockCommand) SetRunE(f func(*cobra.Command, []string) error)
- func (m *MockCommand) SetSilenceErrors(b bool)
- func (m *MockCommand) SetUsageTemplate(s string)
- func (m *MockCommand) SetUse(s string)
- type MockCommandMockRecorder
- func (mr *MockCommandMockRecorder) AddCommand(cmds ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) ExecuteContext(ctx any) *gomock.Call
- func (mr *MockCommandMockRecorder) Flags() *gomock.Call
- func (mr *MockCommandMockRecorder) GetCommand() *gomock.Call
- func (mr *MockCommandMockRecorder) PersistentFlags() *gomock.Call
- func (mr *MockCommandMockRecorder) RunE(cmd, args any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetAliases(s any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetArgs(f any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetHelpTemplate(s any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetRunE(f any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetSilenceErrors(b any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetUsageTemplate(s any) *gomock.Call
- func (mr *MockCommandMockRecorder) SetUse(s any) *gomock.Call
- type MockDB
- func (m *MockDB) BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error)
- func (m *MockDB) Close() error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) ExecContext(ctx context.Context, query string, args ...any) (Result, error)
- func (m *MockDB) PrepareContext(ctx context.Context, query string) (Stmt, error)
- func (m *MockDB) QueryContext(ctx context.Context, query string, args ...any) (Rows, error)
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) BeginTx(ctx, opts any) *gomock.Call
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
- func (mr *MockDBMockRecorder) PrepareContext(ctx, query any) *gomock.Call
- func (mr *MockDBMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
- type MockDebug
- type MockDebugMockRecorder
- type MockEcho
- func (m *MockEcho) EXPECT() *MockEchoMockRecorder
- func (m_2 *MockEcho) Get(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
- func (m_2 *MockEcho) Group(prefix string, m ...echo.MiddlewareFunc) Group
- func (m *MockEcho) Start(address string) error
- func (m *MockEcho) Use(middleware ...echo.MiddlewareFunc)
- type MockEchoMockRecorder
- type MockEchos
- type MockEchosMockRecorder
- type MockEnvconfig
- type MockEnvconfigMockRecorder
- type MockFile
- type MockFileMockRecorder
- type MockFlagSet
- func (m *MockFlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage string)
- func (m *MockFlagSet) EXPECT() *MockFlagSetMockRecorder
- func (m *MockFlagSet) IntVarP(p *int, name, shorthand string, value int, usage string)
- func (m *MockFlagSet) StringVarP(p *string, name, shorthand, value, usage string)
- type MockFlagSetMockRecorder
- type MockGroup
- type MockGroupMockRecorder
- type MockGzip
- type MockGzipMockRecorder
- type MockGzipReader
- type MockGzipReaderMockRecorder
- type MockHttp
- type MockHttpMockRecorder
- type MockIo
- type MockIoMockRecorder
- type MockJson
- type MockJsonMockRecorder
- type MockKeyboard
- type MockKeyboardMockRecorder
- type MockLogger
- type MockLoggerMockRecorder
- type MockOs
- func (m *MockOs) Create(name string) (File, error)
- func (m *MockOs) EXPECT() *MockOsMockRecorder
- func (m *MockOs) Getenv(key string) string
- func (m *MockOs) IsNotExist(err error) bool
- func (m *MockOs) MkdirAll(path string, perm os.FileMode) error
- func (m *MockOs) Open(name string) (File, error)
- func (m *MockOs) RemoveAll(path string) error
- func (m *MockOs) Rename(oldpath, newpath string) error
- func (m *MockOs) Stat(name string) (os.FileInfo, error)
- func (m *MockOs) TempDir() string
- func (m *MockOs) UserHomeDir() (string, error)
- type MockOsMockRecorder
- func (mr *MockOsMockRecorder) Create(name any) *gomock.Call
- func (mr *MockOsMockRecorder) Getenv(key any) *gomock.Call
- func (mr *MockOsMockRecorder) IsNotExist(err any) *gomock.Call
- func (mr *MockOsMockRecorder) MkdirAll(path, perm any) *gomock.Call
- func (mr *MockOsMockRecorder) Open(name any) *gomock.Call
- func (mr *MockOsMockRecorder) RemoveAll(path any) *gomock.Call
- func (mr *MockOsMockRecorder) Rename(oldpath, newpath any) *gomock.Call
- func (mr *MockOsMockRecorder) Stat(name any) *gomock.Call
- func (mr *MockOsMockRecorder) TempDir() *gomock.Call
- func (mr *MockOsMockRecorder) UserHomeDir() *gomock.Call
- type MockPrompt
- type MockPromptMockRecorder
- type MockPromptui
- type MockPromptuiMockRecorder
- type MockRand
- type MockRandMockRecorder
- type MockReadCloser
- type MockReadCloserMockRecorder
- type MockResponse
- type MockResponseMockRecorder
- type MockResult
- type MockResultMockRecorder
- type MockRows
- type MockRowsMockRecorder
- type MockSpinner
- type MockSpinnerMockRecorder
- func (mr *MockSpinnerMockRecorder) Reverse() *gomock.Call
- func (mr *MockSpinnerMockRecorder) SetColor(colors ...any) *gomock.Call
- func (mr *MockSpinnerMockRecorder) SetSuffix(suffix any) *gomock.Call
- func (mr *MockSpinnerMockRecorder) Start() *gomock.Call
- func (mr *MockSpinnerMockRecorder) Stop() *gomock.Call
- type MockSpinners
- type MockSpinnersMockRecorder
- type MockSql
- type MockSqlMockRecorder
- type MockStmt
- type MockStmtMockRecorder
- type MockTable
- func (m *MockTable) AppendBulk(rows [][]string)
- func (m *MockTable) EXPECT() *MockTableMockRecorder
- func (m *MockTable) Render()
- func (m *MockTable) SetAlignment(align int)
- func (m *MockTable) SetAutoFormatHeaders(auto bool)
- func (m *MockTable) SetAutoWrapText(auto bool)
- func (m *MockTable) SetBorder(border bool)
- func (m *MockTable) SetCenterSeparator(sep string)
- func (m *MockTable) SetColumnSeparator(sep string)
- func (m *MockTable) SetHeader(keys []string)
- func (m *MockTable) SetHeaderAlignment(hAlign int)
- func (m *MockTable) SetHeaderLine(line bool)
- func (m *MockTable) SetNoWhiteSpace(allow bool)
- func (m *MockTable) SetRowSeparator(sep string)
- func (m *MockTable) SetTablePadding(padding string)
- type MockTableMockRecorder
- func (mr *MockTableMockRecorder) AppendBulk(rows any) *gomock.Call
- func (mr *MockTableMockRecorder) Render() *gomock.Call
- func (mr *MockTableMockRecorder) SetAlignment(align any) *gomock.Call
- func (mr *MockTableMockRecorder) SetAutoFormatHeaders(auto any) *gomock.Call
- func (mr *MockTableMockRecorder) SetAutoWrapText(auto any) *gomock.Call
- func (mr *MockTableMockRecorder) SetBorder(border any) *gomock.Call
- func (mr *MockTableMockRecorder) SetCenterSeparator(sep any) *gomock.Call
- func (mr *MockTableMockRecorder) SetColumnSeparator(sep any) *gomock.Call
- func (mr *MockTableMockRecorder) SetHeader(keys any) *gomock.Call
- func (mr *MockTableMockRecorder) SetHeaderAlignment(hAlign any) *gomock.Call
- func (mr *MockTableMockRecorder) SetHeaderLine(line any) *gomock.Call
- func (mr *MockTableMockRecorder) SetNoWhiteSpace(allow any) *gomock.Call
- func (mr *MockTableMockRecorder) SetRowSeparator(sep any) *gomock.Call
- func (mr *MockTableMockRecorder) SetTablePadding(padding any) *gomock.Call
- type MockTableWriter
- type MockTableWriterMockRecorder
- type MockTx
- type MockTxMockRecorder
- type Os
- type Prompt
- type Promptui
- type Rand
- type ReadCloser
- type Response
- type Result
- type Rows
- type Spinner
- type Spinners
- type Sql
- type Stmt
- type Table
- type TableWriter
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cobra ¶
type Cobra interface { ExactArgs(n int) cobra.PositionalArgs MaximumNArgs(n int) cobra.PositionalArgs NewCommand() Command }
Cobra is an interface that provides a proxy of the methods of cobra.
type Command ¶
type Command interface { AddCommand(cmds ...Command) ExecuteContext(ctx context.Context) error Flags() FlagSet GetCommand() *cobra.Command PersistentFlags() FlagSet RunE(cmd *cobra.Command, args []string) error SetAliases(s []string) SetArgs(f cobra.PositionalArgs) SetHelpTemplate(s string) SetRunE(f func(*cobra.Command, []string) error) SetSilenceErrors(b bool) SetUse(s string) SetUsageTemplate(s string) }
Command is an interface that provides a proxy of the methods of cobra.Command.
type DB ¶
type DB interface { BeginTx(ctx context.Context, opts *sql.TxOptions) (Tx, error) Close() error ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error) PrepareContext(ctx context.Context, query string) (Stmt, error) QueryContext(ctx context.Context, query string, args ...interface{}) (Rows, error) }
DB is an interface that provides a proxy of the methods of sql.DB.
type Echo ¶ added in v2.1.0
type Echo interface { Get(path string, h e.HandlerFunc, m ...e.MiddlewareFunc) Group(prefix string, m ...e.MiddlewareFunc) Group Start(address string) error Use(middleware ...e.MiddlewareFunc) }
Echo is an interface that provides a proxy of the methods of echo.Echo.
type Envconfig ¶
Envconfig is an interface that provides a proxy of the methods of envconfig.
func NewEnvconfig ¶
func NewEnvconfig() Envconfig
NewEnvconfig returns a new instance of the Envconfig interface.
type File ¶
type File interface { Close() error Read(b []byte) (n int, err error) Write(b []byte) (n int, err error) }
File is an interface that provides a proxy of the methods of os.File.
type FlagSet ¶
type FlagSet interface { BoolVarP(p *bool, name string, shorthand string, value bool, usage string) IntVarP(p *int, name string, shorthand string, value int, usage string) StringVarP(p *string, name string, shorthand string, value string, usage string) }
FlagSet is an interface that provides a proxy of the methods of pflag.FlagSet.
type Group ¶ added in v2.1.0
type Group interface {
GET(path string, h e.HandlerFunc, m ...e.MiddlewareFunc)
}
Group is an interface that provides a proxy of the methods of echo.Group.
type GzipReader ¶
GzipReader is an interface that contains the utility functions for reading gzipped files.
type Json ¶ added in v2.1.0
Json is an interface that provides a proxy of the methods of encoding/json.
type Keyboard ¶
Keyboard is an interface that provides a proxy of the methods of keyboard.
func NewKeyboard ¶
func NewKeyboard() Keyboard
NewKeyboard returns a new instance of the keyboard proxy.
type Logger ¶ added in v2.1.0
type Logger interface {
Fatal(err error)
}
Logger is an interface that provides a proxy of the methods of echo.Logger.
type MockBuffer ¶
type MockBuffer struct {
// contains filtered or unexported fields
}
MockBuffer is a mock of Buffer interface.
func NewMockBuffer ¶
func NewMockBuffer(ctrl *gomock.Controller) *MockBuffer
NewMockBuffer creates a new mock instance.
func (*MockBuffer) EXPECT ¶
func (m *MockBuffer) EXPECT() *MockBufferMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockBufferMockRecorder ¶
type MockBufferMockRecorder struct {
// contains filtered or unexported fields
}
MockBufferMockRecorder is the mock recorder for MockBuffer.
func (*MockBufferMockRecorder) ReadFrom ¶
func (mr *MockBufferMockRecorder) ReadFrom(r any) *gomock.Call
ReadFrom indicates an expected call of ReadFrom.
func (*MockBufferMockRecorder) Reset ¶
func (mr *MockBufferMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockBufferMockRecorder) String ¶
func (mr *MockBufferMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockCobra ¶
type MockCobra struct {
// contains filtered or unexported fields
}
MockCobra is a mock of Cobra interface.
func NewMockCobra ¶
func NewMockCobra(ctrl *gomock.Controller) *MockCobra
NewMockCobra creates a new mock instance.
func (*MockCobra) EXPECT ¶
func (m *MockCobra) EXPECT() *MockCobraMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCobra) ExactArgs ¶
func (m *MockCobra) ExactArgs(n int) cobra.PositionalArgs
ExactArgs mocks base method.
func (*MockCobra) MaximumNArgs ¶
func (m *MockCobra) MaximumNArgs(n int) cobra.PositionalArgs
MaximumNArgs mocks base method.
func (*MockCobra) NewCommand ¶
NewCommand mocks base method.
type MockCobraMockRecorder ¶
type MockCobraMockRecorder struct {
// contains filtered or unexported fields
}
MockCobraMockRecorder is the mock recorder for MockCobra.
func (*MockCobraMockRecorder) ExactArgs ¶
func (mr *MockCobraMockRecorder) ExactArgs(n any) *gomock.Call
ExactArgs indicates an expected call of ExactArgs.
func (*MockCobraMockRecorder) MaximumNArgs ¶
func (mr *MockCobraMockRecorder) MaximumNArgs(n any) *gomock.Call
MaximumNArgs indicates an expected call of MaximumNArgs.
func (*MockCobraMockRecorder) NewCommand ¶
func (mr *MockCobraMockRecorder) NewCommand() *gomock.Call
NewCommand indicates an expected call of NewCommand.
type MockCommand ¶
type MockCommand struct {
// contains filtered or unexported fields
}
MockCommand is a mock of Command interface.
func NewMockCommand ¶
func NewMockCommand(ctrl *gomock.Controller) *MockCommand
NewMockCommand creates a new mock instance.
func (*MockCommand) AddCommand ¶
func (m *MockCommand) AddCommand(cmds ...Command)
AddCommand mocks base method.
func (*MockCommand) EXPECT ¶
func (m *MockCommand) EXPECT() *MockCommandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommand) ExecuteContext ¶
func (m *MockCommand) ExecuteContext(ctx context.Context) error
ExecuteContext mocks base method.
func (*MockCommand) GetCommand ¶
func (m *MockCommand) GetCommand() *cobra.Command
GetCommand mocks base method.
func (*MockCommand) PersistentFlags ¶
func (m *MockCommand) PersistentFlags() FlagSet
PersistentFlags mocks base method.
func (*MockCommand) RunE ¶
func (m *MockCommand) RunE(cmd *cobra.Command, args []string) error
RunE mocks base method.
func (*MockCommand) SetAliases ¶
func (m *MockCommand) SetAliases(s []string)
SetAliases mocks base method.
func (*MockCommand) SetArgs ¶
func (m *MockCommand) SetArgs(f cobra.PositionalArgs)
SetArgs mocks base method.
func (*MockCommand) SetHelpTemplate ¶
func (m *MockCommand) SetHelpTemplate(s string)
SetHelpTemplate mocks base method.
func (*MockCommand) SetRunE ¶
func (m *MockCommand) SetRunE(f func(*cobra.Command, []string) error)
SetRunE mocks base method.
func (*MockCommand) SetSilenceErrors ¶
func (m *MockCommand) SetSilenceErrors(b bool)
SetSilenceErrors mocks base method.
func (*MockCommand) SetUsageTemplate ¶
func (m *MockCommand) SetUsageTemplate(s string)
SetUsageTemplate mocks base method.
type MockCommandMockRecorder ¶
type MockCommandMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandMockRecorder is the mock recorder for MockCommand.
func (*MockCommandMockRecorder) AddCommand ¶
func (mr *MockCommandMockRecorder) AddCommand(cmds ...any) *gomock.Call
AddCommand indicates an expected call of AddCommand.
func (*MockCommandMockRecorder) ExecuteContext ¶
func (mr *MockCommandMockRecorder) ExecuteContext(ctx any) *gomock.Call
ExecuteContext indicates an expected call of ExecuteContext.
func (*MockCommandMockRecorder) Flags ¶
func (mr *MockCommandMockRecorder) Flags() *gomock.Call
Flags indicates an expected call of Flags.
func (*MockCommandMockRecorder) GetCommand ¶
func (mr *MockCommandMockRecorder) GetCommand() *gomock.Call
GetCommand indicates an expected call of GetCommand.
func (*MockCommandMockRecorder) PersistentFlags ¶
func (mr *MockCommandMockRecorder) PersistentFlags() *gomock.Call
PersistentFlags indicates an expected call of PersistentFlags.
func (*MockCommandMockRecorder) RunE ¶
func (mr *MockCommandMockRecorder) RunE(cmd, args any) *gomock.Call
RunE indicates an expected call of RunE.
func (*MockCommandMockRecorder) SetAliases ¶
func (mr *MockCommandMockRecorder) SetAliases(s any) *gomock.Call
SetAliases indicates an expected call of SetAliases.
func (*MockCommandMockRecorder) SetArgs ¶
func (mr *MockCommandMockRecorder) SetArgs(f any) *gomock.Call
SetArgs indicates an expected call of SetArgs.
func (*MockCommandMockRecorder) SetHelpTemplate ¶
func (mr *MockCommandMockRecorder) SetHelpTemplate(s any) *gomock.Call
SetHelpTemplate indicates an expected call of SetHelpTemplate.
func (*MockCommandMockRecorder) SetRunE ¶
func (mr *MockCommandMockRecorder) SetRunE(f any) *gomock.Call
SetRunE indicates an expected call of SetRunE.
func (*MockCommandMockRecorder) SetSilenceErrors ¶
func (mr *MockCommandMockRecorder) SetSilenceErrors(b any) *gomock.Call
SetSilenceErrors indicates an expected call of SetSilenceErrors.
func (*MockCommandMockRecorder) SetUsageTemplate ¶
func (mr *MockCommandMockRecorder) SetUsageTemplate(s any) *gomock.Call
SetUsageTemplate indicates an expected call of SetUsageTemplate.
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) ExecContext ¶
ExecContext mocks base method.
func (*MockDB) PrepareContext ¶
PrepareContext mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) BeginTx ¶
func (mr *MockDBMockRecorder) BeginTx(ctx, opts any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBMockRecorder) ExecContext ¶
func (mr *MockDBMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockDBMockRecorder) PrepareContext ¶
func (mr *MockDBMockRecorder) PrepareContext(ctx, query any) *gomock.Call
PrepareContext indicates an expected call of PrepareContext.
func (*MockDBMockRecorder) QueryContext ¶
func (mr *MockDBMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call
QueryContext indicates an expected call of QueryContext.
type MockDebug ¶
type MockDebug struct {
// contains filtered or unexported fields
}
MockDebug is a mock of Debug interface.
func NewMockDebug ¶
func NewMockDebug(ctrl *gomock.Controller) *MockDebug
NewMockDebug creates a new mock instance.
func (*MockDebug) EXPECT ¶
func (m *MockDebug) EXPECT() *MockDebugMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDebugMockRecorder ¶
type MockDebugMockRecorder struct {
// contains filtered or unexported fields
}
MockDebugMockRecorder is the mock recorder for MockDebug.
func (*MockDebugMockRecorder) ReadBuildInfo ¶
func (mr *MockDebugMockRecorder) ReadBuildInfo() *gomock.Call
ReadBuildInfo indicates an expected call of ReadBuildInfo.
type MockEcho ¶ added in v2.1.0
type MockEcho struct {
// contains filtered or unexported fields
}
MockEcho is a mock of Echo interface.
func NewMockEcho ¶ added in v2.1.0
func NewMockEcho(ctrl *gomock.Controller) *MockEcho
NewMockEcho creates a new mock instance.
func (*MockEcho) EXPECT ¶ added in v2.1.0
func (m *MockEcho) EXPECT() *MockEchoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEcho) Get ¶ added in v2.1.0
func (m_2 *MockEcho) Get(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
Get mocks base method.
func (*MockEcho) Group ¶ added in v2.1.0
func (m_2 *MockEcho) Group(prefix string, m ...echo.MiddlewareFunc) Group
Group mocks base method.
func (*MockEcho) Use ¶ added in v2.1.0
func (m *MockEcho) Use(middleware ...echo.MiddlewareFunc)
Use mocks base method.
type MockEchoMockRecorder ¶ added in v2.1.0
type MockEchoMockRecorder struct {
// contains filtered or unexported fields
}
MockEchoMockRecorder is the mock recorder for MockEcho.
func (*MockEchoMockRecorder) Get ¶ added in v2.1.0
func (mr *MockEchoMockRecorder) Get(path, h any, m ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockEchoMockRecorder) Group ¶ added in v2.1.0
func (mr *MockEchoMockRecorder) Group(prefix any, m ...any) *gomock.Call
Group indicates an expected call of Group.
type MockEchos ¶ added in v2.1.0
type MockEchos struct {
// contains filtered or unexported fields
}
MockEchos is a mock of Echos interface.
func NewMockEchos ¶ added in v2.1.0
func NewMockEchos(ctrl *gomock.Controller) *MockEchos
NewMockEchos creates a new mock instance.
func (*MockEchos) EXPECT ¶ added in v2.1.0
func (m *MockEchos) EXPECT() *MockEchosMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEchosMockRecorder ¶ added in v2.1.0
type MockEchosMockRecorder struct {
// contains filtered or unexported fields
}
MockEchosMockRecorder is the mock recorder for MockEchos.
func (*MockEchosMockRecorder) NewEcho ¶ added in v2.1.0
func (mr *MockEchosMockRecorder) NewEcho() *gomock.Call
NewEcho indicates an expected call of NewEcho.
type MockEnvconfig ¶
type MockEnvconfig struct {
// contains filtered or unexported fields
}
MockEnvconfig is a mock of Envconfig interface.
func NewMockEnvconfig ¶
func NewMockEnvconfig(ctrl *gomock.Controller) *MockEnvconfig
NewMockEnvconfig creates a new mock instance.
func (*MockEnvconfig) EXPECT ¶
func (m *MockEnvconfig) EXPECT() *MockEnvconfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEnvconfigMockRecorder ¶
type MockEnvconfigMockRecorder struct {
// contains filtered or unexported fields
}
MockEnvconfigMockRecorder is the mock recorder for MockEnvconfig.
type MockFile ¶
type MockFile struct {
// contains filtered or unexported fields
}
MockFile is a mock of File interface.
func NewMockFile ¶
func NewMockFile(ctrl *gomock.Controller) *MockFile
NewMockFile creates a new mock instance.
func (*MockFile) EXPECT ¶
func (m *MockFile) EXPECT() *MockFileMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFileMockRecorder ¶
type MockFileMockRecorder struct {
// contains filtered or unexported fields
}
MockFileMockRecorder is the mock recorder for MockFile.
func (*MockFileMockRecorder) Close ¶
func (mr *MockFileMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockFlagSet ¶
type MockFlagSet struct {
// contains filtered or unexported fields
}
MockFlagSet is a mock of FlagSet interface.
func NewMockFlagSet ¶
func NewMockFlagSet(ctrl *gomock.Controller) *MockFlagSet
NewMockFlagSet creates a new mock instance.
func (*MockFlagSet) BoolVarP ¶
func (m *MockFlagSet) BoolVarP(p *bool, name, shorthand string, value bool, usage string)
BoolVarP mocks base method.
func (*MockFlagSet) EXPECT ¶
func (m *MockFlagSet) EXPECT() *MockFlagSetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFlagSet) IntVarP ¶
func (m *MockFlagSet) IntVarP(p *int, name, shorthand string, value int, usage string)
IntVarP mocks base method.
func (*MockFlagSet) StringVarP ¶
func (m *MockFlagSet) StringVarP(p *string, name, shorthand, value, usage string)
StringVarP mocks base method.
type MockFlagSetMockRecorder ¶
type MockFlagSetMockRecorder struct {
// contains filtered or unexported fields
}
MockFlagSetMockRecorder is the mock recorder for MockFlagSet.
func (*MockFlagSetMockRecorder) BoolVarP ¶
func (mr *MockFlagSetMockRecorder) BoolVarP(p, name, shorthand, value, usage any) *gomock.Call
BoolVarP indicates an expected call of BoolVarP.
func (*MockFlagSetMockRecorder) IntVarP ¶
func (mr *MockFlagSetMockRecorder) IntVarP(p, name, shorthand, value, usage any) *gomock.Call
IntVarP indicates an expected call of IntVarP.
func (*MockFlagSetMockRecorder) StringVarP ¶
func (mr *MockFlagSetMockRecorder) StringVarP(p, name, shorthand, value, usage any) *gomock.Call
StringVarP indicates an expected call of StringVarP.
type MockGroup ¶ added in v2.1.0
type MockGroup struct {
// contains filtered or unexported fields
}
MockGroup is a mock of Group interface.
func NewMockGroup ¶ added in v2.1.0
func NewMockGroup(ctrl *gomock.Controller) *MockGroup
NewMockGroup creates a new mock instance.
func (*MockGroup) EXPECT ¶ added in v2.1.0
func (m *MockGroup) EXPECT() *MockGroupMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGroup) GET ¶ added in v2.1.0
func (m_2 *MockGroup) GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc)
GET mocks base method.
type MockGroupMockRecorder ¶ added in v2.1.0
type MockGroupMockRecorder struct {
// contains filtered or unexported fields
}
MockGroupMockRecorder is the mock recorder for MockGroup.
type MockGzip ¶
type MockGzip struct {
// contains filtered or unexported fields
}
MockGzip is a mock of Gzip interface.
func NewMockGzip ¶
func NewMockGzip(ctrl *gomock.Controller) *MockGzip
NewMockGzip creates a new mock instance.
func (*MockGzip) EXPECT ¶
func (m *MockGzip) EXPECT() *MockGzipMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGzipMockRecorder ¶
type MockGzipMockRecorder struct {
// contains filtered or unexported fields
}
MockGzipMockRecorder is the mock recorder for MockGzip.
type MockGzipReader ¶
type MockGzipReader struct {
// contains filtered or unexported fields
}
MockGzipReader is a mock of GzipReader interface.
func NewMockGzipReader ¶
func NewMockGzipReader(ctrl *gomock.Controller) *MockGzipReader
NewMockGzipReader creates a new mock instance.
func (*MockGzipReader) EXPECT ¶
func (m *MockGzipReader) EXPECT() *MockGzipReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGzipReaderMockRecorder ¶
type MockGzipReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockGzipReaderMockRecorder is the mock recorder for MockGzipReader.
func (*MockGzipReaderMockRecorder) Close ¶
func (mr *MockGzipReaderMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockHttp ¶
type MockHttp struct {
// contains filtered or unexported fields
}
MockHttp is a mock of Http interface.
func NewMockHttp ¶
func NewMockHttp(ctrl *gomock.Controller) *MockHttp
NewMockHttp creates a new mock instance.
func (*MockHttp) EXPECT ¶
func (m *MockHttp) EXPECT() *MockHttpMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHttpMockRecorder ¶
type MockHttpMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpMockRecorder is the mock recorder for MockHttp.
type MockIo ¶
type MockIo struct {
// contains filtered or unexported fields
}
MockIo is a mock of Io interface.
func NewMockIo ¶
func NewMockIo(ctrl *gomock.Controller) *MockIo
NewMockIo creates a new mock instance.
func (*MockIo) EXPECT ¶
func (m *MockIo) EXPECT() *MockIoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIoMockRecorder ¶
type MockIoMockRecorder struct {
// contains filtered or unexported fields
}
MockIoMockRecorder is the mock recorder for MockIo.
type MockJson ¶ added in v2.1.0
type MockJson struct {
// contains filtered or unexported fields
}
MockJson is a mock of Json interface.
func NewMockJson ¶ added in v2.1.0
func NewMockJson(ctrl *gomock.Controller) *MockJson
NewMockJson creates a new mock instance.
func (*MockJson) EXPECT ¶ added in v2.1.0
func (m *MockJson) EXPECT() *MockJsonMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockJsonMockRecorder ¶ added in v2.1.0
type MockJsonMockRecorder struct {
// contains filtered or unexported fields
}
MockJsonMockRecorder is the mock recorder for MockJson.
type MockKeyboard ¶
type MockKeyboard struct {
// contains filtered or unexported fields
}
MockKeyboard is a mock of Keyboard interface.
func NewMockKeyboard ¶
func NewMockKeyboard(ctrl *gomock.Controller) *MockKeyboard
NewMockKeyboard creates a new mock instance.
func (*MockKeyboard) EXPECT ¶
func (m *MockKeyboard) EXPECT() *MockKeyboardMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockKeyboardMockRecorder ¶
type MockKeyboardMockRecorder struct {
// contains filtered or unexported fields
}
MockKeyboardMockRecorder is the mock recorder for MockKeyboard.
func (*MockKeyboardMockRecorder) Close ¶
func (mr *MockKeyboardMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockKeyboardMockRecorder) GetKey ¶
func (mr *MockKeyboardMockRecorder) GetKey(timeoutSec any) *gomock.Call
GetKey indicates an expected call of GetKey.
func (*MockKeyboardMockRecorder) Open ¶
func (mr *MockKeyboardMockRecorder) Open() *gomock.Call
Open indicates an expected call of Open.
type MockLogger ¶ added in v2.1.0
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶ added in v2.1.0
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) EXPECT ¶ added in v2.1.0
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Fatal ¶ added in v2.1.0
func (m *MockLogger) Fatal(err error)
Fatal mocks base method.
type MockLoggerMockRecorder ¶ added in v2.1.0
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
type MockOs ¶
type MockOs struct {
// contains filtered or unexported fields
}
MockOs is a mock of Os interface.
func NewMockOs ¶
func NewMockOs(ctrl *gomock.Controller) *MockOs
NewMockOs creates a new mock instance.
func (*MockOs) EXPECT ¶
func (m *MockOs) EXPECT() *MockOsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOs) IsNotExist ¶
IsNotExist mocks base method.
func (*MockOs) UserHomeDir ¶
UserHomeDir mocks base method.
type MockOsMockRecorder ¶
type MockOsMockRecorder struct {
// contains filtered or unexported fields
}
MockOsMockRecorder is the mock recorder for MockOs.
func (*MockOsMockRecorder) Create ¶
func (mr *MockOsMockRecorder) Create(name any) *gomock.Call
Create indicates an expected call of Create.
func (*MockOsMockRecorder) Getenv ¶
func (mr *MockOsMockRecorder) Getenv(key any) *gomock.Call
Getenv indicates an expected call of Getenv.
func (*MockOsMockRecorder) IsNotExist ¶
func (mr *MockOsMockRecorder) IsNotExist(err any) *gomock.Call
IsNotExist indicates an expected call of IsNotExist.
func (*MockOsMockRecorder) MkdirAll ¶
func (mr *MockOsMockRecorder) MkdirAll(path, perm any) *gomock.Call
MkdirAll indicates an expected call of MkdirAll.
func (*MockOsMockRecorder) Open ¶
func (mr *MockOsMockRecorder) Open(name any) *gomock.Call
Open indicates an expected call of Open.
func (*MockOsMockRecorder) RemoveAll ¶
func (mr *MockOsMockRecorder) RemoveAll(path any) *gomock.Call
RemoveAll indicates an expected call of RemoveAll.
func (*MockOsMockRecorder) Rename ¶
func (mr *MockOsMockRecorder) Rename(oldpath, newpath any) *gomock.Call
Rename indicates an expected call of Rename.
func (*MockOsMockRecorder) Stat ¶
func (mr *MockOsMockRecorder) Stat(name any) *gomock.Call
Stat indicates an expected call of Stat.
func (*MockOsMockRecorder) TempDir ¶
func (mr *MockOsMockRecorder) TempDir() *gomock.Call
TempDir indicates an expected call of TempDir.
func (*MockOsMockRecorder) UserHomeDir ¶
func (mr *MockOsMockRecorder) UserHomeDir() *gomock.Call
UserHomeDir indicates an expected call of UserHomeDir.
type MockPrompt ¶
type MockPrompt struct {
// contains filtered or unexported fields
}
MockPrompt is a mock of Prompt interface.
func NewMockPrompt ¶
func NewMockPrompt(ctrl *gomock.Controller) *MockPrompt
NewMockPrompt creates a new mock instance.
func (*MockPrompt) EXPECT ¶
func (m *MockPrompt) EXPECT() *MockPromptMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPrompt) SetLabel ¶
func (m *MockPrompt) SetLabel(label string)
SetLabel mocks base method.
type MockPromptMockRecorder ¶
type MockPromptMockRecorder struct {
// contains filtered or unexported fields
}
MockPromptMockRecorder is the mock recorder for MockPrompt.
func (*MockPromptMockRecorder) Run ¶
func (mr *MockPromptMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
type MockPromptui ¶
type MockPromptui struct {
// contains filtered or unexported fields
}
MockPromptui is a mock of Promptui interface.
func NewMockPromptui ¶
func NewMockPromptui(ctrl *gomock.Controller) *MockPromptui
NewMockPromptui creates a new mock instance.
func (*MockPromptui) EXPECT ¶
func (m *MockPromptui) EXPECT() *MockPromptuiMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPromptui) NewPrompt ¶
func (m *MockPromptui) NewPrompt() Prompt
NewPrompt mocks base method.
type MockPromptuiMockRecorder ¶
type MockPromptuiMockRecorder struct {
// contains filtered or unexported fields
}
MockPromptuiMockRecorder is the mock recorder for MockPromptui.
func (*MockPromptuiMockRecorder) NewPrompt ¶
func (mr *MockPromptuiMockRecorder) NewPrompt() *gomock.Call
NewPrompt indicates an expected call of NewPrompt.
type MockRand ¶
type MockRand struct {
// contains filtered or unexported fields
}
MockRand is a mock of Rand interface.
func NewMockRand ¶
func NewMockRand(ctrl *gomock.Controller) *MockRand
NewMockRand creates a new mock instance.
func (*MockRand) EXPECT ¶
func (m *MockRand) EXPECT() *MockRandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRandMockRecorder ¶
type MockRandMockRecorder struct {
// contains filtered or unexported fields
}
MockRandMockRecorder is the mock recorder for MockRand.
type MockReadCloser ¶
type MockReadCloser struct {
// contains filtered or unexported fields
}
MockReadCloser is a mock of ReadCloser interface.
func NewMockReadCloser ¶
func NewMockReadCloser(ctrl *gomock.Controller) *MockReadCloser
NewMockReadCloser creates a new mock instance.
func (*MockReadCloser) EXPECT ¶
func (m *MockReadCloser) EXPECT() *MockReadCloserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockReadCloserMockRecorder ¶
type MockReadCloserMockRecorder struct {
// contains filtered or unexported fields
}
MockReadCloserMockRecorder is the mock recorder for MockReadCloser.
func (*MockReadCloserMockRecorder) Close ¶
func (mr *MockReadCloserMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockResponse ¶
type MockResponse struct {
// contains filtered or unexported fields
}
MockResponse is a mock of Response interface.
func NewMockResponse ¶
func NewMockResponse(ctrl *gomock.Controller) *MockResponse
NewMockResponse creates a new mock instance.
func (*MockResponse) EXPECT ¶
func (m *MockResponse) EXPECT() *MockResponseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResponse) GetBody ¶
func (m *MockResponse) GetBody() ReadCloser
GetBody mocks base method.
type MockResponseMockRecorder ¶
type MockResponseMockRecorder struct {
// contains filtered or unexported fields
}
MockResponseMockRecorder is the mock recorder for MockResponse.
func (*MockResponseMockRecorder) Close ¶
func (mr *MockResponseMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockResponseMockRecorder) GetBody ¶
func (mr *MockResponseMockRecorder) GetBody() *gomock.Call
GetBody indicates an expected call of GetBody.
type MockResult ¶
type MockResult struct {
// contains filtered or unexported fields
}
MockResult is a mock of Result interface.
func NewMockResult ¶
func NewMockResult(ctrl *gomock.Controller) *MockResult
NewMockResult creates a new mock instance.
func (*MockResult) EXPECT ¶
func (m *MockResult) EXPECT() *MockResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResult) LastInsertId ¶
func (m *MockResult) LastInsertId() (int64, error)
LastInsertId mocks base method.
func (*MockResult) RowsAffected ¶
func (m *MockResult) RowsAffected() (int64, error)
RowsAffected mocks base method.
type MockResultMockRecorder ¶
type MockResultMockRecorder struct {
// contains filtered or unexported fields
}
MockResultMockRecorder is the mock recorder for MockResult.
func (*MockResultMockRecorder) LastInsertId ¶
func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call
LastInsertId indicates an expected call of LastInsertId.
func (*MockResultMockRecorder) RowsAffected ¶
func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call
RowsAffected indicates an expected call of RowsAffected.
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface.
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance.
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows.
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
type MockSpinner ¶
type MockSpinner struct {
// contains filtered or unexported fields
}
MockSpinner is a mock of Spinner interface.
func NewMockSpinner ¶
func NewMockSpinner(ctrl *gomock.Controller) *MockSpinner
NewMockSpinner creates a new mock instance.
func (*MockSpinner) EXPECT ¶
func (m *MockSpinner) EXPECT() *MockSpinnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSpinner) SetColor ¶
func (m *MockSpinner) SetColor(colors ...string) error
SetColor mocks base method.
func (*MockSpinner) SetSuffix ¶
func (m *MockSpinner) SetSuffix(suffix string)
SetSuffix mocks base method.
type MockSpinnerMockRecorder ¶
type MockSpinnerMockRecorder struct {
// contains filtered or unexported fields
}
MockSpinnerMockRecorder is the mock recorder for MockSpinner.
func (*MockSpinnerMockRecorder) Reverse ¶
func (mr *MockSpinnerMockRecorder) Reverse() *gomock.Call
Reverse indicates an expected call of Reverse.
func (*MockSpinnerMockRecorder) SetColor ¶
func (mr *MockSpinnerMockRecorder) SetColor(colors ...any) *gomock.Call
SetColor indicates an expected call of SetColor.
func (*MockSpinnerMockRecorder) SetSuffix ¶
func (mr *MockSpinnerMockRecorder) SetSuffix(suffix any) *gomock.Call
SetSuffix indicates an expected call of SetSuffix.
func (*MockSpinnerMockRecorder) Start ¶
func (mr *MockSpinnerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockSpinnerMockRecorder) Stop ¶
func (mr *MockSpinnerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockSpinners ¶
type MockSpinners struct {
// contains filtered or unexported fields
}
MockSpinners is a mock of Spinners interface.
func NewMockSpinners ¶
func NewMockSpinners(ctrl *gomock.Controller) *MockSpinners
NewMockSpinners creates a new mock instance.
func (*MockSpinners) EXPECT ¶
func (m *MockSpinners) EXPECT() *MockSpinnersMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSpinners) NewSpinner ¶
func (m *MockSpinners) NewSpinner() Spinner
NewSpinner mocks base method.
type MockSpinnersMockRecorder ¶
type MockSpinnersMockRecorder struct {
// contains filtered or unexported fields
}
MockSpinnersMockRecorder is the mock recorder for MockSpinners.
func (*MockSpinnersMockRecorder) NewSpinner ¶
func (mr *MockSpinnersMockRecorder) NewSpinner() *gomock.Call
NewSpinner indicates an expected call of NewSpinner.
type MockSql ¶
type MockSql struct {
// contains filtered or unexported fields
}
MockSql is a mock of Sql interface.
func NewMockSql ¶
func NewMockSql(ctrl *gomock.Controller) *MockSql
NewMockSql creates a new mock instance.
func (*MockSql) EXPECT ¶
func (m *MockSql) EXPECT() *MockSqlMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockSqlMockRecorder ¶
type MockSqlMockRecorder struct {
// contains filtered or unexported fields
}
MockSqlMockRecorder is the mock recorder for MockSql.
type MockStmt ¶
type MockStmt struct {
// contains filtered or unexported fields
}
MockStmt is a mock of Stmt interface.
func NewMockStmt ¶
func NewMockStmt(ctrl *gomock.Controller) *MockStmt
NewMockStmt creates a new mock instance.
func (*MockStmt) EXPECT ¶
func (m *MockStmt) EXPECT() *MockStmtMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStmtMockRecorder ¶
type MockStmtMockRecorder struct {
// contains filtered or unexported fields
}
MockStmtMockRecorder is the mock recorder for MockStmt.
func (*MockStmtMockRecorder) Close ¶
func (mr *MockStmtMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStmtMockRecorder) ExecContext ¶
func (mr *MockStmtMockRecorder) ExecContext(ctx any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
type MockTable ¶
type MockTable struct {
// contains filtered or unexported fields
}
MockTable is a mock of Table interface.
func NewMockTable ¶
func NewMockTable(ctrl *gomock.Controller) *MockTable
NewMockTable creates a new mock instance.
func (*MockTable) AppendBulk ¶
AppendBulk mocks base method.
func (*MockTable) EXPECT ¶
func (m *MockTable) EXPECT() *MockTableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTable) SetAlignment ¶
SetAlignment mocks base method.
func (*MockTable) SetAutoFormatHeaders ¶
SetAutoFormatHeaders mocks base method.
func (*MockTable) SetAutoWrapText ¶
SetAutoWrapText mocks base method.
func (*MockTable) SetCenterSeparator ¶
SetCenterSeparator mocks base method.
func (*MockTable) SetColumnSeparator ¶
SetColumnSeparator mocks base method.
func (*MockTable) SetHeaderAlignment ¶
SetHeaderAlignment mocks base method.
func (*MockTable) SetHeaderLine ¶
SetHeaderLine mocks base method.
func (*MockTable) SetNoWhiteSpace ¶
SetNoWhiteSpace mocks base method.
func (*MockTable) SetRowSeparator ¶
SetRowSeparator mocks base method.
func (*MockTable) SetTablePadding ¶
SetTablePadding mocks base method.
type MockTableMockRecorder ¶
type MockTableMockRecorder struct {
// contains filtered or unexported fields
}
MockTableMockRecorder is the mock recorder for MockTable.
func (*MockTableMockRecorder) AppendBulk ¶
func (mr *MockTableMockRecorder) AppendBulk(rows any) *gomock.Call
AppendBulk indicates an expected call of AppendBulk.
func (*MockTableMockRecorder) Render ¶
func (mr *MockTableMockRecorder) Render() *gomock.Call
Render indicates an expected call of Render.
func (*MockTableMockRecorder) SetAlignment ¶
func (mr *MockTableMockRecorder) SetAlignment(align any) *gomock.Call
SetAlignment indicates an expected call of SetAlignment.
func (*MockTableMockRecorder) SetAutoFormatHeaders ¶
func (mr *MockTableMockRecorder) SetAutoFormatHeaders(auto any) *gomock.Call
SetAutoFormatHeaders indicates an expected call of SetAutoFormatHeaders.
func (*MockTableMockRecorder) SetAutoWrapText ¶
func (mr *MockTableMockRecorder) SetAutoWrapText(auto any) *gomock.Call
SetAutoWrapText indicates an expected call of SetAutoWrapText.
func (*MockTableMockRecorder) SetBorder ¶
func (mr *MockTableMockRecorder) SetBorder(border any) *gomock.Call
SetBorder indicates an expected call of SetBorder.
func (*MockTableMockRecorder) SetCenterSeparator ¶
func (mr *MockTableMockRecorder) SetCenterSeparator(sep any) *gomock.Call
SetCenterSeparator indicates an expected call of SetCenterSeparator.
func (*MockTableMockRecorder) SetColumnSeparator ¶
func (mr *MockTableMockRecorder) SetColumnSeparator(sep any) *gomock.Call
SetColumnSeparator indicates an expected call of SetColumnSeparator.
func (*MockTableMockRecorder) SetHeader ¶
func (mr *MockTableMockRecorder) SetHeader(keys any) *gomock.Call
SetHeader indicates an expected call of SetHeader.
func (*MockTableMockRecorder) SetHeaderAlignment ¶
func (mr *MockTableMockRecorder) SetHeaderAlignment(hAlign any) *gomock.Call
SetHeaderAlignment indicates an expected call of SetHeaderAlignment.
func (*MockTableMockRecorder) SetHeaderLine ¶
func (mr *MockTableMockRecorder) SetHeaderLine(line any) *gomock.Call
SetHeaderLine indicates an expected call of SetHeaderLine.
func (*MockTableMockRecorder) SetNoWhiteSpace ¶
func (mr *MockTableMockRecorder) SetNoWhiteSpace(allow any) *gomock.Call
SetNoWhiteSpace indicates an expected call of SetNoWhiteSpace.
func (*MockTableMockRecorder) SetRowSeparator ¶
func (mr *MockTableMockRecorder) SetRowSeparator(sep any) *gomock.Call
SetRowSeparator indicates an expected call of SetRowSeparator.
func (*MockTableMockRecorder) SetTablePadding ¶
func (mr *MockTableMockRecorder) SetTablePadding(padding any) *gomock.Call
SetTablePadding indicates an expected call of SetTablePadding.
type MockTableWriter ¶
type MockTableWriter struct {
// contains filtered or unexported fields
}
MockTableWriter is a mock of TableWriter interface.
func NewMockTableWriter ¶
func NewMockTableWriter(ctrl *gomock.Controller) *MockTableWriter
NewMockTableWriter creates a new mock instance.
func (*MockTableWriter) EXPECT ¶
func (m *MockTableWriter) EXPECT() *MockTableWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTableWriterMockRecorder ¶
type MockTableWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockTableWriterMockRecorder is the mock recorder for MockTableWriter.
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
MockTx is a mock of Tx interface.
func NewMockTx ¶
func NewMockTx(ctrl *gomock.Controller) *MockTx
NewMockTx creates a new mock instance.
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTx) ExecContext ¶
ExecContext mocks base method.
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx.
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTxMockRecorder) ExecContext ¶
func (mr *MockTxMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
type Os ¶
type Os interface { Create(name string) (File, error) Getenv(key string) string IsNotExist(err error) bool MkdirAll(path string, perm os.FileMode) error Open(name string) (File, error) RemoveAll(path string) error Rename(oldpath, newpath string) error Stat(name string) (os.FileInfo, error) TempDir() string UserHomeDir() (string, error) }
Os is an interface that provides a proxy of the methods of os.
type Promptui ¶
type Promptui interface {
NewPrompt() Prompt
}
Promptui is an interface that provides a proxy of the methods of promptui.
func NewPromptui ¶
func NewPromptui() Promptui
NewPromptui returns a new instance of the Promptui interface.
type ReadCloser ¶
ReadCloser is an interface that provides a proxy of the methods of io.ReadCloser.
type Response ¶
type Response interface { Close() error GetBody() ReadCloser }
Response is an interface that provides a proxy of the methods of http.Response.
type Spinner ¶
type Spinner interface { Reverse() SetColor(colors ...string) error SetSuffix(suffix string) Start() Stop() }
Spinner is an interface that provides a proxy of the methods of spinner.Spinner.
type Spinners ¶
type Spinners interface {
NewSpinner() Spinner
}
Spinners is an interface that provides a proxy of the methods of spinner.
func NewSpinners ¶
func NewSpinners() Spinners
NewSpinners returns a new instance of the Spinners interface.
type Stmt ¶
type Stmt interface { ExecContext(ctx context.Context, args ...interface{}) (Result, error) Close() error }
Stmt is an interface that provides a proxy of the methods of sql.Stmt.
type Table ¶
type Table interface { AppendBulk(rows [][]string) Render() SetAlignment(align int) SetAutoFormatHeaders(auto bool) SetAutoWrapText(auto bool) SetBorder(border bool) SetCenterSeparator(sep string) SetColumnSeparator(sep string) SetHeader(keys []string) SetHeaderAlignment(hAlign int) SetHeaderLine(line bool) SetNoWhiteSpace(allow bool) SetRowSeparator(sep string) SetTablePadding(padding string) }
Table is an interface that provides a proxy of the methods of tablewriter.Table.
type TableWriter ¶
TableWriter is an interface that provides a proxy of the methods of tablewriter.
func NewTableWriter ¶
func NewTableWriter() TableWriter
NewTableWriter returns a new instance of the TableWriter interface.
Source Files
¶
- buffer.go
- buffer_mock.go
- cobra.go
- cobra_mock.go
- debug.go
- debug_mock.go
- echo.go
- echo_mock.go
- envconfig.go
- envconfig_mock.go
- godoc.go
- gzip.go
- gzip_mock.go
- http.go
- http_mock.go
- io.go
- io_mock.go
- json.go
- json_mock.go
- keyboard.go
- keyboard_mock.go
- os.go
- os_mock.go
- pflag.go
- pflag_mock.go
- promptui.go
- promptui_mock.go
- rand.go
- rand_mock.go
- spinner.go
- spinner_mock.go
- sql.go
- sql_mock.go
- tablewriter.go
- tablewriter_mock.go