executors/docker/internal/networks/mock_debugLogger.go (52 lines of code) (raw):
// Code generated by mockery v2.53.3. DO NOT EDIT.
package networks
import mock "github.com/stretchr/testify/mock"
// mockDebugLogger is an autogenerated mock type for the debugLogger type
type mockDebugLogger struct {
mock.Mock
}
type mockDebugLogger_Expecter struct {
mock *mock.Mock
}
func (_m *mockDebugLogger) EXPECT() *mockDebugLogger_Expecter {
return &mockDebugLogger_Expecter{mock: &_m.Mock}
}
// Debugln provides a mock function with given fields: args
func (_m *mockDebugLogger) Debugln(args ...interface{}) {
var _ca []interface{}
_ca = append(_ca, args...)
_m.Called(_ca...)
}
// mockDebugLogger_Debugln_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debugln'
type mockDebugLogger_Debugln_Call struct {
*mock.Call
}
// Debugln is a helper method to define mock.On call
// - args ...interface{}
func (_e *mockDebugLogger_Expecter) Debugln(args ...interface{}) *mockDebugLogger_Debugln_Call {
return &mockDebugLogger_Debugln_Call{Call: _e.mock.On("Debugln",
append([]interface{}{}, args...)...)}
}
func (_c *mockDebugLogger_Debugln_Call) Run(run func(args ...interface{})) *mockDebugLogger_Debugln_Call {
_c.Call.Run(func(args mock.Arguments) {
variadicArgs := make([]interface{}, len(args)-0)
for i, a := range args[0:] {
if a != nil {
variadicArgs[i] = a.(interface{})
}
}
run(variadicArgs...)
})
return _c
}
func (_c *mockDebugLogger_Debugln_Call) Return() *mockDebugLogger_Debugln_Call {
_c.Call.Return()
return _c
}
func (_c *mockDebugLogger_Debugln_Call) RunAndReturn(run func(...interface{})) *mockDebugLogger_Debugln_Call {
_c.Run(run)
return _c
}
// newMockDebugLogger creates a new instance of mockDebugLogger. 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 newMockDebugLogger(t interface {
mock.TestingT
Cleanup(func())
}) *mockDebugLogger {
mock := &mockDebugLogger{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}