From 676617170a5cb652b10832d041ff3f51c2e8d753 Mon Sep 17 00:00:00 2001 From: Jacob Brewer Date: Sun, 13 Oct 2024 09:00:29 +0100 Subject: [PATCH] feat(inserter): adding gen file to the inserter package (#35) adding gen file to the inserter package --- inserter/gen.go | 3 +++ inserter/mock_BatchOpt.go | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 inserter/gen.go create mode 100644 inserter/mock_BatchOpt.go diff --git a/inserter/gen.go b/inserter/gen.go new file mode 100644 index 0000000..7705cc8 --- /dev/null +++ b/inserter/gen.go @@ -0,0 +1,3 @@ +package inserter + +//go:generate go run -mod=mod github.com/vektra/mockery/v2 diff --git a/inserter/mock_BatchOpt.go b/inserter/mock_BatchOpt.go new file mode 100644 index 0000000..20a9c45 --- /dev/null +++ b/inserter/mock_BatchOpt.go @@ -0,0 +1,29 @@ +// Code generated by mockery. DO NOT EDIT. + +package inserter + +import mock "github.com/stretchr/testify/mock" + +// MockBatchOpt is an autogenerated mock type for the BatchOpt type +type MockBatchOpt struct { + mock.Mock +} + +// Execute provides a mock function with given fields: _a0 +func (_m *MockBatchOpt) Execute(_a0 *SQLBatch) { + _m.Called(_a0) +} + +// NewMockBatchOpt creates a new instance of MockBatchOpt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewMockBatchOpt(t interface { + mock.TestingT + Cleanup(func()) +}) *MockBatchOpt { + mock := &MockBatchOpt{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +}