Documentation ¶
Index ¶
- type ConflictResolver
- func (_m *ConflictResolver) CheckFlags(fs *flag.FlagSet, c *config.Config) error
- func (_m *ConflictResolver) Name() string
- func (_m *ConflictResolver) RegisterFlags(fs *flag.FlagSet, cmd string, c *config.Config)
- func (_m *ConflictResolver) ResolveConflict(universe resolver.Universe, r *rule.Rule, imports resolver.ImportMap, ...) (*resolver.Symbol, bool)
- type Scope
- type SymbolCapturer
- type SymbolProvider
- func (_m *SymbolProvider) CanProvide(dep label.Label, knownRule func(label.Label) (*rule.Rule, bool)) bool
- func (_m *SymbolProvider) CheckFlags(fs *flag.FlagSet, c *config.Config, scope resolver.Scope) error
- func (_m *SymbolProvider) Name() string
- func (_m *SymbolProvider) OnEnd() error
- func (_m *SymbolProvider) OnResolve() error
- func (_m *SymbolProvider) RegisterFlags(fs *flag.FlagSet, cmd string, c *config.Config)
- type SymbolResolver
- type Universe
- func (_m *Universe) AddSymbolProvider(provider resolver.SymbolProvider) error
- func (_m *Universe) GetConflictResolver(name string) (resolver.ConflictResolver, bool)
- func (_m *Universe) GetDepsCleaner(name string) (resolver.DepsCleaner, bool)
- func (_m *Universe) GetKnownRule(from label.Label) (*rule.Rule, bool)
- func (_m *Universe) GetScope(name string) (resolver.Scope, bool)
- func (_m *Universe) GetSymbol(name string) (*resolver.Symbol, bool)
- func (_m *Universe) GetSymbols(prefix string) []*resolver.Symbol
- func (_m *Universe) PutConflictResolver(name string, r resolver.ConflictResolver) error
- func (_m *Universe) PutDepsCleaner(name string, r resolver.DepsCleaner) error
- func (_m *Universe) PutKnownRule(from label.Label, r *rule.Rule) error
- func (_m *Universe) PutSymbol(known *resolver.Symbol) error
- func (_m *Universe) ResolveSymbol(c *config.Config, ix *resolve.RuleIndex, from label.Label, lang string, ...) (*resolver.Symbol, bool)
- func (_m *Universe) String() string
- func (_m *Universe) SymbolProviders() []resolver.SymbolProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConflictResolver ¶
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 ¶
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 ¶
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 ¶
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) GetSymbols ¶
GetSymbols provides a mock function with given fields: prefix
type SymbolCapturer ¶
func NewSymbolsCapturer ¶
func NewSymbolsCapturer(t *testing.T) *SymbolCapturer
type SymbolProvider ¶
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 ¶
RegisterFlags provides a mock function with given fields: fs, cmd, c
type SymbolResolver ¶
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.
type Universe ¶
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) GetDepsCleaner ¶
func (_m *Universe) GetDepsCleaner(name string) (resolver.DepsCleaner, bool)
GetDepsCleaner provides a mock function with given fields: name
func (*Universe) GetKnownRule ¶
GetKnownRule provides a mock function with given fields: from
func (*Universe) GetSymbols ¶
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) PutDepsCleaner ¶
func (_m *Universe) PutDepsCleaner(name string, r resolver.DepsCleaner) error
PutDepsCleaner provides a mock function with given fields: name, r
func (*Universe) PutKnownRule ¶
PutKnownRule provides a mock function with given fields: from, r
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) SymbolProviders ¶
func (_m *Universe) SymbolProviders() []resolver.SymbolProvider
SymbolProviders provides a mock function with given fields: