Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockGetSemVerFn ¶
NewMockGetSemVerFn creates new MockGetSemver function for MockVersioner.
func NewMockGetVersionStringFn ¶
NewMockGetVersionStringFn creates new MockGetVersionString function for MockVersioner.
Types ¶
type MockVersioner ¶
type MockVersioner struct { MockGetVersionString func() string MockGetSemVer func() (*semver.Version, error) MockInConstraints func() (bool, error) }
MockVersioner provides mock version operations.
func (*MockVersioner) GetSemVer ¶
func (m *MockVersioner) GetSemVer() (*semver.Version, error)
GetSemVer calls the underlying MockGetSemVer.
func (*MockVersioner) GetVersionString ¶
func (m *MockVersioner) GetVersionString() string
GetVersionString calls the underlying MockGetVersionString.
func (*MockVersioner) InConstraints ¶
func (m *MockVersioner) InConstraints(c string) (bool, error)
InConstraints calls the underlying MockInConstraints.
Click to show internal directories.
Click to hide internal directories.