fakes

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 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

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

func (*FakeReachableDatadogIncrementer) Incr

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

func (*FakeReachableDatadogIncrementer) IncrArgsForCall

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

func (*FakeReachableDatadogIncrementer) IncrCallCount

func (fake *FakeReachableDatadogIncrementer) IncrCallCount() int

func (*FakeReachableDatadogIncrementer) IncrReturns

func (fake *FakeReachableDatadogIncrementer) IncrReturns(result1 error)

func (*FakeReachableDatadogIncrementer) IncrReturnsOnCall

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

func (*FakeReachableDatadogIncrementer) Invocations

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

type FakeSQLExecer

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

func (*FakeSQLExecer) ExecContext

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

func (*FakeSQLExecer) ExecContextArgsForCall

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

func (*FakeSQLExecer) ExecContextCallCount

func (fake *FakeSQLExecer) ExecContextCallCount() int

func (*FakeSQLExecer) ExecContextReturns

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

func (*FakeSQLExecer) ExecContextReturnsOnCall

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

func (*FakeSQLExecer) Invocations

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

type FakeSQLPinger

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

func (*FakeSQLPinger) Invocations

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

func (*FakeSQLPinger) PingContext

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

func (*FakeSQLPinger) PingContextArgsForCall

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

func (*FakeSQLPinger) PingContextCallCount

func (fake *FakeSQLPinger) PingContextCallCount() int

func (*FakeSQLPinger) PingContextReturns

func (fake *FakeSQLPinger) PingContextReturns(result1 error)

func (*FakeSQLPinger) PingContextReturnsOnCall

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

type FakeSQLQueryer

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

func (*FakeSQLQueryer) Invocations

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

func (*FakeSQLQueryer) QueryContext

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

func (*FakeSQLQueryer) QueryContextArgsForCall

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

func (*FakeSQLQueryer) QueryContextCallCount

func (fake *FakeSQLQueryer) QueryContextCallCount() int

func (*FakeSQLQueryer) QueryContextReturns

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

func (*FakeSQLQueryer) QueryContextReturnsOnCall

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