fakes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 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. (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.

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 FakeILogger

type FakeILogger struct {
	DebugStub func(msg string, args map[string]interface{})

	InfoStub func(msg string, args map[string]interface{})

	WarnStub func(msg string, args map[string]interface{})

	ErrorStub func(msg string, args map[string]interface{})
	// contains filtered or unexported fields
}

func (*FakeILogger) Debug

func (fake *FakeILogger) Debug(msg string, args map[string]interface{})

func (*FakeILogger) DebugArgsForCall

func (fake *FakeILogger) DebugArgsForCall(i int) (string, map[string]interface{})

func (*FakeILogger) DebugCallCount

func (fake *FakeILogger) DebugCallCount() int

func (*FakeILogger) Error

func (fake *FakeILogger) Error(msg string, args map[string]interface{})

func (*FakeILogger) ErrorArgsForCall

func (fake *FakeILogger) ErrorArgsForCall(i int) (string, map[string]interface{})

func (*FakeILogger) ErrorCallCount

func (fake *FakeILogger) ErrorCallCount() int

func (*FakeILogger) Info

func (fake *FakeILogger) Info(msg string, args map[string]interface{})

func (*FakeILogger) InfoArgsForCall

func (fake *FakeILogger) InfoArgsForCall(i int) (string, map[string]interface{})

func (*FakeILogger) InfoCallCount

func (fake *FakeILogger) InfoCallCount() int

func (*FakeILogger) Invocations

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

func (*FakeILogger) Warn

func (fake *FakeILogger) Warn(msg string, args map[string]interface{})

func (*FakeILogger) WarnArgsForCall

func (fake *FakeILogger) WarnArgsForCall(i int) (string, map[string]interface{})

func (*FakeILogger) WarnCallCount

func (fake *FakeILogger) WarnCallCount() int

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)

Jump to

Keyboard shortcuts

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