mock

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	mock.Mock
}

Options is an autogenerated mock type for the Options type

func NewOptions

func NewOptions() *Options

func (*Options) Bool

func (_m *Options) Bool(name string, defaultValue bool, description string) *bool

Bool provides a mock function with given fields: name, defaultValue, description

func (*Options) BoolVar

func (_m *Options) BoolVar(pointer *bool, name string, defaultValue bool, description string)

BoolVar provides a mock function with given fields: pointer, name, defaultValue, description

func (*Options) Duration

func (_m *Options) Duration(name string, defaultValue time.Duration, description string) *time.Duration

Duration provides a mock function with given fields: name, defaultValue, description

func (*Options) DurationVar

func (_m *Options) DurationVar(pointer *time.Duration, name string, defaultValue time.Duration, description string)

DurationVar provides a mock function with given fields: pointer, name, defaultValue, description

func (*Options) Float

func (_m *Options) Float(name string, defaultValue float32, description string) *float32

Float provides a mock function with given fields: name, defaultValue, description

func (*Options) FloatVar

func (_m *Options) FloatVar(pointer *float32, name string, defaultValue float32, description string)

FloatVar provides a mock function with given fields: pointer, name, defaultValue, description

func (*Options) Int

func (_m *Options) Int(name string, defaultValue int, description string) *int

Int provides a mock function with given fields: name, defaultValue, description

func (*Options) IntVar

func (_m *Options) IntVar(pointer *int, name string, defaultValue int, description string)

IntVar provides a mock function with given fields: pointer, name, defaultValue, description

func (*Options) Load

func (_m *Options) Load() error

Load provides a mock function with given fields:

func (*Options) String

func (_m *Options) String(name string, defaultValue string, description string) *string

String provides a mock function with given fields: name, defaultValue, description

func (*Options) StringVar

func (_m *Options) StringVar(pointer *string, name string, defaultValue string, description string)

StringVar provides a mock function with given fields: pointer, name, defaultValue, description

func (*Options) Time

func (_m *Options) Time(name string, defaultValue time.Time, description string) *time.Time

Time provides a mock function with given fields: name, defaultValue, description

func (*Options) TimeVar

func (_m *Options) TimeVar(pointer *time.Time, name string, defaultValue time.Time, description string)

TimeVar provides a mock function with given fields: pointer, name, defaultValue, description

type Source

type Source struct {
	mock.Mock
}

Source is an autogenerated mock type for the Source type

func NewSource

func NewSource() *Source

func (*Source) Bool

func (_m *Source) Bool(name string) (bool, error)

Bool provides a mock function with given fields: name

func (*Source) Duration

func (_m *Source) Duration(name string) (time.Duration, error)

Duration provides a mock function with given fields: name

func (*Source) Float

func (_m *Source) Float(name string) (float32, error)

Float provides a mock function with given fields: name

func (*Source) Int

func (_m *Source) Int(name string) (int, error)

Int provides a mock function with given fields: name

func (*Source) Load

func (_m *Source) Load() error

Load provides a mock function with given fields:

func (*Source) String

func (_m *Source) String(name string) (string, error)

String provides a mock function with given fields: name

func (*Source) Time

func (_m *Source) Time(name string) (time.Time, error)

Time provides a mock function with given fields: name

Jump to

Keyboard shortcuts

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