github.com/BarDweller/libpak@v0.0.0-20230630201634-8dd5cfc15ec9/effect/mocks/executor.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 effect "github.com/BarDweller/libpak/effect" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Executor is an autogenerated mock type for the Executor type 11 type Executor struct { 12 mock.Mock 13 } 14 15 // Execute provides a mock function with given fields: execution 16 func (_m *Executor) Execute(execution effect.Execution) error { 17 ret := _m.Called(execution) 18 19 var r0 error 20 if rf, ok := ret.Get(0).(func(effect.Execution) error); ok { 21 r0 = rf(execution) 22 } else { 23 r0 = ret.Error(0) 24 } 25 26 return r0 27 }