testsale

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testsale is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsDecimal

func AsDecimal(t *testing.T, s string) decimal.Decimal

func AssertDecimalEqual

func AssertDecimalEqual(t TestingTB, expected, actual decimal.Decimal)

AssertDecimalEqual compares two decimal values using decimal.Equal and provides detailed error output with string representations if they don't match.

func DatePtr

func DatePtr(year int, month time.Month, day int) *time.Time

func IntPtr

func IntPtr(s int) *int

func StrPtr

func StrPtr(s string) *string

Types

type MockTestingTB

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

MockTestingTB is a mock of TestingTB interface.

func NewMockTestingTB

func NewMockTestingTB(ctrl *gomock.Controller) *MockTestingTB

NewMockTestingTB creates a new mock instance.

func (*MockTestingTB) Chdir

func (m *MockTestingTB) Chdir(dir string)

Chdir mocks base method.

func (*MockTestingTB) Cleanup

func (m *MockTestingTB) Cleanup(arg0 func())

Cleanup mocks base method.

func (*MockTestingTB) Context

func (m *MockTestingTB) Context() context.Context

Context mocks base method.

func (*MockTestingTB) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTestingTB) Error

func (m *MockTestingTB) Error(args ...any)

Error mocks base method.

func (*MockTestingTB) Errorf

func (m *MockTestingTB) Errorf(format string, args ...any)

Errorf mocks base method.

func (*MockTestingTB) Fail

func (m *MockTestingTB) Fail()

Fail mocks base method.

func (*MockTestingTB) FailNow

func (m *MockTestingTB) FailNow()

FailNow mocks base method.

func (*MockTestingTB) Failed

func (m *MockTestingTB) Failed() bool

Failed mocks base method.

func (*MockTestingTB) Fatal

func (m *MockTestingTB) Fatal(args ...any)

Fatal mocks base method.

func (*MockTestingTB) Fatalf

func (m *MockTestingTB) Fatalf(format string, args ...any)

Fatalf mocks base method.

func (*MockTestingTB) Helper

func (m *MockTestingTB) Helper()

Helper mocks base method.

func (*MockTestingTB) Log

func (m *MockTestingTB) Log(args ...any)

Log mocks base method.

func (*MockTestingTB) Logf

func (m *MockTestingTB) Logf(format string, args ...any)

Logf mocks base method.

func (*MockTestingTB) Name

func (m *MockTestingTB) Name() string

Name mocks base method.

func (*MockTestingTB) Setenv

func (m *MockTestingTB) Setenv(key, value string)

Setenv mocks base method.

func (*MockTestingTB) Skip

func (m *MockTestingTB) Skip(args ...any)

Skip mocks base method.

func (*MockTestingTB) SkipNow

func (m *MockTestingTB) SkipNow()

SkipNow mocks base method.

func (*MockTestingTB) Skipf

func (m *MockTestingTB) Skipf(format string, args ...any)

Skipf mocks base method.

func (*MockTestingTB) Skipped

func (m *MockTestingTB) Skipped() bool

Skipped mocks base method.

func (*MockTestingTB) TempDir

func (m *MockTestingTB) TempDir() string

TempDir mocks base method.

type MockTestingTBMockRecorder

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

MockTestingTBMockRecorder is the mock recorder for MockTestingTB.

func (*MockTestingTBMockRecorder) Chdir

func (mr *MockTestingTBMockRecorder) Chdir(dir any) *gomock.Call

Chdir indicates an expected call of Chdir.

func (*MockTestingTBMockRecorder) Cleanup

func (mr *MockTestingTBMockRecorder) Cleanup(arg0 any) *gomock.Call

Cleanup indicates an expected call of Cleanup.

func (*MockTestingTBMockRecorder) Context

func (mr *MockTestingTBMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockTestingTBMockRecorder) Error

func (mr *MockTestingTBMockRecorder) Error(args ...any) *gomock.Call

Error indicates an expected call of Error.

func (*MockTestingTBMockRecorder) Errorf

func (mr *MockTestingTBMockRecorder) Errorf(format any, args ...any) *gomock.Call

Errorf indicates an expected call of Errorf.

func (*MockTestingTBMockRecorder) Fail

Fail indicates an expected call of Fail.

func (*MockTestingTBMockRecorder) FailNow

func (mr *MockTestingTBMockRecorder) FailNow() *gomock.Call

FailNow indicates an expected call of FailNow.

func (*MockTestingTBMockRecorder) Failed

func (mr *MockTestingTBMockRecorder) Failed() *gomock.Call

Failed indicates an expected call of Failed.

func (*MockTestingTBMockRecorder) Fatal

func (mr *MockTestingTBMockRecorder) Fatal(args ...any) *gomock.Call

Fatal indicates an expected call of Fatal.

func (*MockTestingTBMockRecorder) Fatalf

func (mr *MockTestingTBMockRecorder) Fatalf(format any, args ...any) *gomock.Call

Fatalf indicates an expected call of Fatalf.

func (*MockTestingTBMockRecorder) Helper

func (mr *MockTestingTBMockRecorder) Helper() *gomock.Call

Helper indicates an expected call of Helper.

func (*MockTestingTBMockRecorder) Log

func (mr *MockTestingTBMockRecorder) Log(args ...any) *gomock.Call

Log indicates an expected call of Log.

func (*MockTestingTBMockRecorder) Logf

func (mr *MockTestingTBMockRecorder) Logf(format any, args ...any) *gomock.Call

Logf indicates an expected call of Logf.

func (*MockTestingTBMockRecorder) Name

Name indicates an expected call of Name.

func (*MockTestingTBMockRecorder) Setenv

func (mr *MockTestingTBMockRecorder) Setenv(key, value any) *gomock.Call

Setenv indicates an expected call of Setenv.

func (*MockTestingTBMockRecorder) Skip

func (mr *MockTestingTBMockRecorder) Skip(args ...any) *gomock.Call

Skip indicates an expected call of Skip.

func (*MockTestingTBMockRecorder) SkipNow

func (mr *MockTestingTBMockRecorder) SkipNow() *gomock.Call

SkipNow indicates an expected call of SkipNow.

func (*MockTestingTBMockRecorder) Skipf

func (mr *MockTestingTBMockRecorder) Skipf(format any, args ...any) *gomock.Call

Skipf indicates an expected call of Skipf.

func (*MockTestingTBMockRecorder) Skipped

func (mr *MockTestingTBMockRecorder) Skipped() *gomock.Call

Skipped indicates an expected call of Skipped.

func (*MockTestingTBMockRecorder) TempDir

func (mr *MockTestingTBMockRecorder) TempDir() *gomock.Call

TempDir indicates an expected call of TempDir.

type TestingTB

type TestingTB interface {
	Helper()
	Cleanup(func())
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Name() string
	Skip(args ...interface{})
	SkipNow()
	Skipf(format string, args ...interface{})
	Skipped() bool
	TempDir() string
	Setenv(key, value string)
	Chdir(dir string)
	Context() context.Context
}

TestingTB abstracts the subset of testing.TB methods used by test helpers.

Jump to

Keyboard shortcuts

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