mocks

package
v0.0.0-...-2e562ea Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConflictResolver

type ConflictResolver struct {
	mock.Mock
}

ConflictResolver is an autogenerated mock type for the ConflictResolver type

func NewConflictResolver

func NewConflictResolver(t mockConstructorTestingTNewConflictResolver) *ConflictResolver

NewConflictResolver creates a new instance of ConflictResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConflictResolver) CheckFlags

func (_m *ConflictResolver) CheckFlags(fs *flag.FlagSet, c *config.Config) error

CheckFlags provides a mock function with given fields: fs, c

func (*ConflictResolver) Name

func (_m *ConflictResolver) Name() string

Name provides a mock function with given fields:

func (*ConflictResolver) RegisterFlags

func (_m *ConflictResolver) RegisterFlags(fs *flag.FlagSet, cmd string, c *config.Config)

RegisterFlags provides a mock function with given fields: fs, cmd, c

func (*ConflictResolver) ResolveConflict

func (_m *ConflictResolver) ResolveConflict(universe resolver.Universe, r *rule.Rule, imports resolver.ImportMap, imp *resolver.Import, symbol *resolver.Symbol) (*resolver.Symbol, bool)

ResolveConflict provides a mock function with given fields: universe, r, imports, imp, symbol

type Scope

type Scope struct {
	mock.Mock
}

Scope is an autogenerated mock type for the Scope type

func NewScope

func NewScope(t mockConstructorTestingTNewScope) *Scope

NewScope creates a new instance of Scope. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Scope) GetScope

func (_m *Scope) GetScope(name string) (resolver.Scope, bool)

GetScope provides a mock function with given fields: name

func (*Scope) GetSymbol

func (_m *Scope) GetSymbol(name string) (*resolver.Symbol, bool)

GetSymbol provides a mock function with given fields: name

func (*Scope) GetSymbols

func (_m *Scope) GetSymbols(prefix string) []*resolver.Symbol

GetSymbols provides a mock function with given fields: prefix

func (*Scope) PutSymbol

func (_m *Scope) PutSymbol(known *resolver.Symbol) error

PutSymbol provides a mock function with given fields: known

func (*Scope) String

func (_m *Scope) String() string

String provides a mock function with given fields:

type SymbolCapturer

type SymbolCapturer struct {
	Registry *Scope
	Got      []*resolver.Symbol
}

func NewSymbolsCapturer

func NewSymbolsCapturer(t *testing.T) *SymbolCapturer

type SymbolProvider

type SymbolProvider struct {
	mock.Mock
}

SymbolProvider is an autogenerated mock type for the SymbolProvider type

func NewSymbolProvider

func NewSymbolProvider(t mockConstructorTestingTNewSymbolProvider) *SymbolProvider

NewSymbolProvider creates a new instance of SymbolProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SymbolProvider) CanProvide

func (_m *SymbolProvider) CanProvide(dep label.Label, knownRule func(label.Label) (*rule.Rule, bool)) bool

CanProvide provides a mock function with given fields: dep, knownRule

func (*SymbolProvider) CheckFlags

func (_m *SymbolProvider) CheckFlags(fs *flag.FlagSet, c *config.Config, scope resolver.Scope) error

CheckFlags provides a mock function with given fields: fs, c, scope

func (*SymbolProvider) Name

func (_m *SymbolProvider) Name() string

Name provides a mock function with given fields:

func (*SymbolProvider) OnEnd

func (_m *SymbolProvider) OnEnd() error

OnEnd provides a mock function with given fields:

func (*SymbolProvider) OnResolve

func (_m *SymbolProvider) OnResolve() error

OnResolve provides a mock function with given fields:

func (*SymbolProvider) RegisterFlags

func (_m *SymbolProvider) RegisterFlags(fs *flag.FlagSet, cmd string, c *config.Config)

RegisterFlags provides a mock function with given fields: fs, cmd, c

type SymbolResolver

type SymbolResolver struct {
	mock.Mock
}

SymbolResolver is an autogenerated mock type for the SymbolResolver type

func NewSymbolResolver

func NewSymbolResolver(t mockConstructorTestingTNewSymbolResolver) *SymbolResolver

NewSymbolResolver creates a new instance of SymbolResolver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SymbolResolver) ResolveSymbol

func (_m *SymbolResolver) ResolveSymbol(c *config.Config, ix *resolve.RuleIndex, from label.Label, lang string, sym string) (*resolver.Symbol, bool)

ResolveSymbol provides a mock function with given fields: c, ix, from, lang, sym

type Universe

type Universe struct {
	mock.Mock
}

Universe is an autogenerated mock type for the Universe type

func NewUniverse

func NewUniverse(t mockConstructorTestingTNewUniverse) *Universe

NewUniverse creates a new instance of Universe. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Universe) AddSymbolProvider

func (_m *Universe) AddSymbolProvider(provider resolver.SymbolProvider) error

AddSymbolProvider provides a mock function with given fields: provider

func (*Universe) GetConflictResolver

func (_m *Universe) GetConflictResolver(name string) (resolver.ConflictResolver, bool)

GetConflictResolver provides a mock function with given fields: name

func (*Universe) GetKnownRule

func (_m *Universe) GetKnownRule(from label.Label) (*rule.Rule, bool)

GetKnownRule provides a mock function with given fields: from

func (*Universe) GetScope

func (_m *Universe) GetScope(name string) (resolver.Scope, bool)

GetScope provides a mock function with given fields: name

func (*Universe) GetSymbol

func (_m *Universe) GetSymbol(name string) (*resolver.Symbol, bool)

GetSymbol provides a mock function with given fields: name

func (*Universe) GetSymbols

func (_m *Universe) GetSymbols(prefix string) []*resolver.Symbol

GetSymbols provides a mock function with given fields: prefix

func (*Universe) PutConflictResolver

func (_m *Universe) PutConflictResolver(name string, r resolver.ConflictResolver) error

PutConflictResolver provides a mock function with given fields: name, r

func (*Universe) PutKnownRule

func (_m *Universe) PutKnownRule(from label.Label, r *rule.Rule) error

PutKnownRule provides a mock function with given fields: from, r

func (*Universe) PutSymbol

func (_m *Universe) PutSymbol(known *resolver.Symbol) error

PutSymbol provides a mock function with given fields: known

func (*Universe) ResolveSymbol

func (_m *Universe) ResolveSymbol(c *config.Config, ix *resolve.RuleIndex, from label.Label, lang string, sym string) (*resolver.Symbol, bool)

ResolveSymbol provides a mock function with given fields: c, ix, from, lang, sym

func (*Universe) String

func (_m *Universe) String() string

String provides a mock function with given fields:

func (*Universe) SymbolProviders

func (_m *Universe) SymbolProviders() []resolver.SymbolProvider

SymbolProviders provides a mock function with given fields:

Jump to

Keyboard shortcuts

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