fakes

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 4 Imported by: 0

README

fakes

Files in this directory are utilized for testing the health library and can be safely ignored by most.

If you are doing development work on the lib and are introducing a change to some interface, you will need to regenerate one or more fakes. To do so, make sure you have counterfeiter installed and run go generate.

Note that you will have to modify the generated files and remove the import of the health library itself (as that will cause circular import problems).

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT. (with minor, manual edits)

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeICheckable

type FakeICheckable struct {
	StatusStub func() (interface{}, error)
	// contains filtered or unexported fields
}

func (*FakeICheckable) Invocations

func (fake *FakeICheckable) Invocations() map[string][][]interface{}

func (*FakeICheckable) Status

func (fake *FakeICheckable) Status() (interface{}, error)

func (*FakeICheckable) StatusCallCount

func (fake *FakeICheckable) StatusCallCount() int

func (*FakeICheckable) StatusReturns

func (fake *FakeICheckable) StatusReturns(result1 interface{}, result2 error)

func (*FakeICheckable) StatusReturnsOnCall

func (fake *FakeICheckable) StatusReturnsOnCall(i int, result1 interface{}, result2 error)

type FakeReachableDatadogIncrementer added in v1.1.2

type FakeReachableDatadogIncrementer struct {
	IncrStub func(name string, tags []string, rate float64) error
	// contains filtered or unexported fields
}

func (*FakeReachableDatadogIncrementer) Incr added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) Incr(name string, tags []string, rate float64) error

func (*FakeReachableDatadogIncrementer) IncrArgsForCall added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) IncrArgsForCall(i int) (string, []string, float64)

func (*FakeReachableDatadogIncrementer) IncrCallCount added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) IncrCallCount() int

func (*FakeReachableDatadogIncrementer) IncrReturns added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) IncrReturns(result1 error)

func (*FakeReachableDatadogIncrementer) IncrReturnsOnCall added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) IncrReturnsOnCall(i int, result1 error)

func (*FakeReachableDatadogIncrementer) Invocations added in v1.1.2

func (fake *FakeReachableDatadogIncrementer) Invocations() map[string][][]interface{}

type FakeSQLExecer added in v1.0.2

type FakeSQLExecer struct {
	ExecContextStub func(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
	// contains filtered or unexported fields
}

func (*FakeSQLExecer) ExecContext added in v1.0.2

func (fake *FakeSQLExecer) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func (*FakeSQLExecer) ExecContextArgsForCall added in v1.0.2

func (fake *FakeSQLExecer) ExecContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeSQLExecer) ExecContextCallCount added in v1.0.2

func (fake *FakeSQLExecer) ExecContextCallCount() int

func (*FakeSQLExecer) ExecContextReturns added in v1.0.2

func (fake *FakeSQLExecer) ExecContextReturns(result1 sql.Result, result2 error)

func (*FakeSQLExecer) ExecContextReturnsOnCall added in v1.0.2

func (fake *FakeSQLExecer) ExecContextReturnsOnCall(i int, result1 sql.Result, result2 error)

func (*FakeSQLExecer) Invocations added in v1.0.2

func (fake *FakeSQLExecer) Invocations() map[string][][]interface{}

type FakeSQLPinger added in v1.0.2

type FakeSQLPinger struct {
	PingContextStub func(ctx context.Context) error
	// contains filtered or unexported fields
}

func (*FakeSQLPinger) Invocations added in v1.0.2

func (fake *FakeSQLPinger) Invocations() map[string][][]interface{}

func (*FakeSQLPinger) PingContext added in v1.0.2

func (fake *FakeSQLPinger) PingContext(ctx context.Context) error

func (*FakeSQLPinger) PingContextArgsForCall added in v1.0.2

func (fake *FakeSQLPinger) PingContextArgsForCall(i int) context.Context

func (*FakeSQLPinger) PingContextCallCount added in v1.0.2

func (fake *FakeSQLPinger) PingContextCallCount() int

func (*FakeSQLPinger) PingContextReturns added in v1.0.2

func (fake *FakeSQLPinger) PingContextReturns(result1 error)

func (*FakeSQLPinger) PingContextReturnsOnCall added in v1.0.2

func (fake *FakeSQLPinger) PingContextReturnsOnCall(i int, result1 error)

type FakeSQLQueryer added in v1.0.2

type FakeSQLQueryer struct {
	QueryContextStub func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	// contains filtered or unexported fields
}

func (*FakeSQLQueryer) Invocations added in v1.0.2

func (fake *FakeSQLQueryer) Invocations() map[string][][]interface{}

func (*FakeSQLQueryer) QueryContext added in v1.0.2

func (fake *FakeSQLQueryer) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func (*FakeSQLQueryer) QueryContextArgsForCall added in v1.0.2

func (fake *FakeSQLQueryer) QueryContextArgsForCall(i int) (context.Context, string, []interface{})

func (*FakeSQLQueryer) QueryContextCallCount added in v1.0.2

func (fake *FakeSQLQueryer) QueryContextCallCount() int

func (*FakeSQLQueryer) QueryContextReturns added in v1.0.2

func (fake *FakeSQLQueryer) QueryContextReturns(result1 *sql.Rows, result2 error)

func (*FakeSQLQueryer) QueryContextReturnsOnCall added in v1.0.2

func (fake *FakeSQLQueryer) QueryContextReturnsOnCall(i int, result1 *sql.Rows, result2 error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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