fakes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 1 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)

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

Jump to

Keyboard shortcuts

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