Documentation
¶
Overview ¶
Package filematch is a generated GoMock package.
Index ¶
- func NewDefaultGlobCompiler() globCompiler
- func NewGlobMatcher() *matcher
- type ErrInvalidPattern
- type FileMatcher
- type MockFileMatcherInterface
- type MockFileMatcherInterfaceMockRecorder
- type MockcompiledGlob
- type MockcompiledGlobMockRecorder
- type MockfileSystem
- type MockfileSystemMockRecorder
- type MockglobCompiler
- type MockglobCompilerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultGlobCompiler ¶
func NewDefaultGlobCompiler() globCompiler
Types ¶
type ErrInvalidPattern ¶
ErrInvalidPattern represents an error due to an invalid glob pattern.
func (ErrInvalidPattern) Error ¶
func (e ErrInvalidPattern) Error() string
type FileMatcher ¶
type MockFileMatcherInterface ¶
type MockFileMatcherInterface struct {
// contains filtered or unexported fields
}
MockFileMatcherInterface is a mock of FileMatcherInterface interface.
func NewMockFileMatcherInterface ¶
func NewMockFileMatcherInterface(ctrl *gomock.Controller) *MockFileMatcherInterface
NewMockFileMatcherInterface creates a new mock instance.
func (*MockFileMatcherInterface) EXPECT ¶
func (m *MockFileMatcherInterface) EXPECT() *MockFileMatcherInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileMatcherInterface) MatchFiles ¶
func (m *MockFileMatcherInterface) MatchFiles(arg0 []string) ([]string, error)
MatchFiles mocks base method.
type MockFileMatcherInterfaceMockRecorder ¶
type MockFileMatcherInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockFileMatcherInterfaceMockRecorder is the mock recorder for MockFileMatcherInterface.
func (*MockFileMatcherInterfaceMockRecorder) MatchFiles ¶
func (mr *MockFileMatcherInterfaceMockRecorder) MatchFiles(arg0 interface{}) *gomock.Call
MatchFiles indicates an expected call of MatchFiles.
type MockcompiledGlob ¶
type MockcompiledGlob struct {
// contains filtered or unexported fields
}
MockcompiledGlob is a mock of compiledGlob interface.
func NewMockcompiledGlob ¶
func NewMockcompiledGlob(ctrl *gomock.Controller) *MockcompiledGlob
NewMockcompiledGlob creates a new mock instance.
func (*MockcompiledGlob) EXPECT ¶
func (m *MockcompiledGlob) EXPECT() *MockcompiledGlobMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockcompiledGlob) Match ¶
func (m *MockcompiledGlob) Match(arg0 string) bool
Match mocks base method.
type MockcompiledGlobMockRecorder ¶
type MockcompiledGlobMockRecorder struct {
// contains filtered or unexported fields
}
MockcompiledGlobMockRecorder is the mock recorder for MockcompiledGlob.
func (*MockcompiledGlobMockRecorder) Match ¶
func (mr *MockcompiledGlobMockRecorder) Match(arg0 interface{}) *gomock.Call
Match indicates an expected call of Match.
type MockfileSystem ¶
type MockfileSystem struct {
// contains filtered or unexported fields
}
MockfileSystem is a mock of fileSystem interface.
func NewMockfileSystem ¶
func NewMockfileSystem(ctrl *gomock.Controller) *MockfileSystem
NewMockfileSystem creates a new mock instance.
func (*MockfileSystem) EXPECT ¶
func (m *MockfileSystem) EXPECT() *MockfileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockfileSystem) Getwd ¶
func (m *MockfileSystem) Getwd() (string, error)
Getwd mocks base method.
type MockfileSystemMockRecorder ¶
type MockfileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockfileSystemMockRecorder is the mock recorder for MockfileSystem.
func (*MockfileSystemMockRecorder) Getwd ¶
func (mr *MockfileSystemMockRecorder) Getwd() *gomock.Call
Getwd indicates an expected call of Getwd.
func (*MockfileSystemMockRecorder) Stat ¶
func (mr *MockfileSystemMockRecorder) Stat(path interface{}) *gomock.Call
Stat indicates an expected call of Stat.
func (*MockfileSystemMockRecorder) Walk ¶
func (mr *MockfileSystemMockRecorder) Walk(root, walkFn interface{}) *gomock.Call
Walk indicates an expected call of Walk.
type MockglobCompiler ¶
type MockglobCompiler struct {
// contains filtered or unexported fields
}
MockglobCompiler is a mock of globCompiler interface.
func NewMockglobCompiler ¶
func NewMockglobCompiler(ctrl *gomock.Controller) *MockglobCompiler
NewMockglobCompiler creates a new mock instance.
func (*MockglobCompiler) Compile ¶
func (m *MockglobCompiler) Compile(pattern string) (compiledGlob, error)
Compile mocks base method.
func (*MockglobCompiler) EXPECT ¶
func (m *MockglobCompiler) EXPECT() *MockglobCompilerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockglobCompilerMockRecorder ¶
type MockglobCompilerMockRecorder struct {
// contains filtered or unexported fields
}
MockglobCompilerMockRecorder is the mock recorder for MockglobCompiler.
func (*MockglobCompilerMockRecorder) Compile ¶
func (mr *MockglobCompilerMockRecorder) Compile(pattern interface{}) *gomock.Call
Compile indicates an expected call of Compile.