github.com/goravel/framework@v1.13.9/contracts/console/mocks/Artisan.go (about) 1 // Code generated by mockery v2.14.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 console "github.com/goravel/framework/contracts/console" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Artisan is an autogenerated mock type for the Artisan type 11 type Artisan struct { 12 mock.Mock 13 } 14 15 // Call provides a mock function with given fields: command 16 func (_m *Artisan) Call(command string) { 17 _m.Called(command) 18 } 19 20 // CallAndExit provides a mock function with given fields: command 21 func (_m *Artisan) CallAndExit(command string) { 22 _m.Called(command) 23 } 24 25 // Register provides a mock function with given fields: commands 26 func (_m *Artisan) Register(commands []console.Command) { 27 _m.Called(commands) 28 } 29 30 // Run provides a mock function with given fields: args, exitIfArtisan 31 func (_m *Artisan) Run(args []string, exitIfArtisan bool) { 32 _m.Called(args, exitIfArtisan) 33 } 34 35 type mockConstructorTestingTNewArtisan interface { 36 mock.TestingT 37 Cleanup(func()) 38 } 39 40 // NewArtisan creates a new instance of Artisan. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 41 func NewArtisan(t mockConstructorTestingTNewArtisan) *Artisan { 42 mock := &Artisan{} 43 mock.Mock.Test(t) 44 45 t.Cleanup(func() { mock.AssertExpectations(t) }) 46 47 return mock 48 }