mock

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, actual, expect interface{})

func AssertErrorEqual

func AssertErrorEqual(t *testing.T, err error, expect string)

func AssertNoError

func AssertNoError(t *testing.T, err error)

Types

type Error

type Error struct {
	Err   error
	Entry *sq.LogEntry
}

func (*Error) Error

func (e *Error) Error() string

type ErrorMock

type ErrorMock struct {
	Err    error
	Entry  *sq.LogEntry
	Called int
}

func (*ErrorMock) Mock

func (m *ErrorMock) Mock(err error, entry *sq.LogEntry) error

func (*ErrorMock) Reset

func (m *ErrorMock) Reset()

Jump to

Keyboard shortcuts

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