testutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertExpectations

func AssertExpectations(mocks ...Mock)

func AssertNotCalled

func AssertNotCalled(mock Mock, methodName string)

func NewLogger

func NewLogger() *zap.Logger

func ParseYAML

func ParseYAML(data string) map[string]interface{}

func ReplaceGlobalLogger

func ReplaceGlobalLogger() *zap.Logger

func RunSuite

func RunSuite(t *testing.T, description string)

Types

type Mock

type Mock interface {
	AssertExpectations(t mock.TestingT) bool
	AssertNotCalled(t mock.TestingT, methodName string, arguments ...interface{}) bool
}

Jump to

Keyboard shortcuts

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