mocks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGitignoreMatcher

type MockGitignoreMatcher struct {
	mock.Mock
}

MockGitignoreMatcher is a mock implementation of the gitignore.Matcher interface

func NewMockGitignoreMatcher

func NewMockGitignoreMatcher() *MockGitignoreMatcher

func (*MockGitignoreMatcher) Match

func (m *MockGitignoreMatcher) Match(path []string, isDir bool) bool

Match mocks the Match method of the gitignore.Matcher interface

type MockMatcher

type MockMatcher struct {
	mock.Mock
}

MockMatcher is a mock implementation of the Matcher interface

func NewMockMatcher

func NewMockMatcher() *MockMatcher

func (*MockMatcher) Match

func (m *MockMatcher) Match(path string, isDir bool) (bool, error)

Match mocks the Match method of the Matcher interface

type MockMatcherFactory

type MockMatcherFactory struct {
	mock.Mock
}

MockMatcherFactory is a mock implementation of the MatcherFactory interface

func NewMockMatcherFactory

func NewMockMatcherFactory() *MockMatcherFactory

func (*MockMatcherFactory) NewMatcher

func (m *MockMatcherFactory) NewMatcher(fs afero.Fs) (gitignore.Matcher, error)

NewMatcher mocks the NewMatcher method of the MatcherFactory interface

Jump to

Keyboard shortcuts

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