filematch

package
v1.185.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package filematch is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultGlobCompiler

func NewDefaultGlobCompiler() globCompiler

func NewGlobMatcher

func NewGlobMatcher() *matcher

Convenience function for default usage.

Types

type ErrInvalidPattern

type ErrInvalidPattern struct {
	Pattern string
	Err     error
}

ErrInvalidPattern represents an error due to an invalid glob pattern.

func (ErrInvalidPattern) Error

func (e ErrInvalidPattern) Error() string

type FileMatcher

type FileMatcher interface {
	MatchFiles([]string) ([]string, error)
}

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

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

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

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.

func (*MockfileSystem) Stat

func (m *MockfileSystem) Stat(path string) (os.FileInfo, error)

Stat mocks base method.

func (*MockfileSystem) Walk

func (m *MockfileSystem) Walk(root string, walkFn filepath.WalkFunc) error

Walk 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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL