internal

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockT

type MockT struct {
	// contains filtered or unexported fields
}

MockT implements internal test interfaces

func NewMock

func NewMock(t *testing.T) *MockT

NewMock creates new mock

func (*MockT) Fatalf

func (mt *MockT) Fatalf(format string, args ...interface{})

Fatalf mock

func (*MockT) Helper

func (mt *MockT) Helper()

Helper Mock

func (*MockT) ShouldFail

func (mt *MockT) ShouldFail(substr string, fn func())

ShouldFail checks if a passed function fails with a substring

func (*MockT) ShouldPass

func (mt *MockT) ShouldPass(fn func())

ShouldPass check if a passed function dosn't fail

Jump to

Keyboard shortcuts

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