Documentation
¶
Overview ¶
Package testsale is a generated GoMock package.
Index ¶
- func AsDecimal(t *testing.T, s string) decimal.Decimal
- func AssertDecimalEqual(t TestingTB, expected, actual decimal.Decimal)
- func DatePtr(year int, month time.Month, day int) *time.Time
- func IntPtr(s int) *int
- func StrPtr(s string) *string
- type MockTestingTB
- func (m *MockTestingTB) Chdir(dir string)
- func (m *MockTestingTB) Cleanup(arg0 func())
- func (m *MockTestingTB) Context() context.Context
- func (m *MockTestingTB) EXPECT() *MockTestingTBMockRecorder
- func (m *MockTestingTB) Error(args ...any)
- func (m *MockTestingTB) Errorf(format string, args ...any)
- func (m *MockTestingTB) Fail()
- func (m *MockTestingTB) FailNow()
- func (m *MockTestingTB) Failed() bool
- func (m *MockTestingTB) Fatal(args ...any)
- func (m *MockTestingTB) Fatalf(format string, args ...any)
- func (m *MockTestingTB) Helper()
- func (m *MockTestingTB) Log(args ...any)
- func (m *MockTestingTB) Logf(format string, args ...any)
- func (m *MockTestingTB) Name() string
- func (m *MockTestingTB) Setenv(key, value string)
- func (m *MockTestingTB) Skip(args ...any)
- func (m *MockTestingTB) SkipNow()
- func (m *MockTestingTB) Skipf(format string, args ...any)
- func (m *MockTestingTB) Skipped() bool
- func (m *MockTestingTB) TempDir() string
- type MockTestingTBMockRecorder
- func (mr *MockTestingTBMockRecorder) Chdir(dir any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Cleanup(arg0 any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Context() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Error(args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Errorf(format any, args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Fail() *gomock.Call
- func (mr *MockTestingTBMockRecorder) FailNow() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Failed() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Fatal(args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Fatalf(format any, args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Helper() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Log(args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Logf(format any, args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Name() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Setenv(key, value any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Skip(args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) SkipNow() *gomock.Call
- func (mr *MockTestingTBMockRecorder) Skipf(format any, args ...any) *gomock.Call
- func (mr *MockTestingTBMockRecorder) Skipped() *gomock.Call
- func (mr *MockTestingTBMockRecorder) TempDir() *gomock.Call
- type TestingTB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDecimalEqual ¶
AssertDecimalEqual compares two decimal values using decimal.Equal and provides detailed error output with string representations if they don't match.
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) 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 ¶
func (m *MockTestingTB) EXPECT() *MockTestingTBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestingTB) Errorf ¶
func (m *MockTestingTB) Errorf(format string, args ...any)
Errorf mocks base method.
func (*MockTestingTB) Fatalf ¶
func (m *MockTestingTB) Fatalf(format string, args ...any)
Fatalf mocks base method.
func (*MockTestingTB) Logf ¶
func (m *MockTestingTB) Logf(format string, args ...any)
Logf mocks base method.
func (*MockTestingTB) Setenv ¶
func (m *MockTestingTB) Setenv(key, value string)
Setenv mocks base method.
func (*MockTestingTB) Skipf ¶
func (m *MockTestingTB) Skipf(format string, args ...any)
Skipf 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 ¶
func (mr *MockTestingTBMockRecorder) Fail() *gomock.Call
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 ¶
func (mr *MockTestingTBMockRecorder) Name() *gomock.Call
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.