Help us shape the future of Go! Take the 2026 Go Developer Survey

filematch

package
v1.233.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 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)
}

FileMatcher matches file paths against configured patterns and returns the subset of paths that match.

type MockFileMatcher added in v1.196.0

type MockFileMatcher struct {
	// contains filtered or unexported fields
}

MockFileMatcher is a mock of FileMatcher interface.

func NewMockFileMatcher added in v1.196.0

func NewMockFileMatcher(ctrl *gomock.Controller) *MockFileMatcher

NewMockFileMatcher creates a new mock instance.

func (*MockFileMatcher) EXPECT added in v1.196.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFileMatcher) MatchFiles added in v1.196.0

func (m *MockFileMatcher) MatchFiles(arg0 []string) ([]string, error)

MatchFiles mocks base method.

type MockFileMatcherMockRecorder added in v1.196.0

type MockFileMatcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockFileMatcherMockRecorder is the mock recorder for MockFileMatcher.

func (*MockFileMatcherMockRecorder) MatchFiles added in v1.196.0

func (mr *MockFileMatcherMockRecorder) MatchFiles(arg0 any) *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 any) *gomock.Call

Match indicates an expected call of Match.

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 any) *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