package internal

import "github.com/rekby/fixenv/internal"

Index

Types

type FormatCall

type FormatCall struct {
	Format       string
	Args         []interface{}
	ResultString string
}

type TestMock

type TestMock struct {
	TestName   string
	SkipGoexit bool

	M         sync.Mutex
	Cleanups  []func()
	Logs      []FormatCall
	Fatals    []FormatCall
	SkipCount int
}

func (*TestMock) CallCleanup

func (t *TestMock) CallCleanup()

func (*TestMock) Cleanup

func (t *TestMock) Cleanup(f func())

func (*TestMock) Fatalf

func (t *TestMock) Fatalf(format string, args ...interface{})

func (*TestMock) Logf

func (t *TestMock) Logf(format string, args ...interface{})

func (*TestMock) Name

func (t *TestMock) Name() string

func (*TestMock) SkipNow

func (t *TestMock) SkipNow()

func (*TestMock) Skipped

func (t *TestMock) Skipped() bool

Source Files

testmock.go

Version
v0.7.0 (latest)
Published
Aug 9, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
4 hours ago

Tools for package owners.