github.com/goravel/framework@v1.13.9/contracts/database/orm/mocks/Cursor.go (about) 1 // Code generated by mockery v2.30.1. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // Cursor is an autogenerated mock type for the Cursor type 8 type Cursor struct { 9 mock.Mock 10 } 11 12 // Scan provides a mock function with given fields: value 13 func (_m *Cursor) Scan(value interface{}) error { 14 ret := _m.Called(value) 15 16 var r0 error 17 if rf, ok := ret.Get(0).(func(interface{}) error); ok { 18 r0 = rf(value) 19 } else { 20 r0 = ret.Error(0) 21 } 22 23 return r0 24 } 25 26 // NewCursor creates a new instance of Cursor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 27 // The first argument is typically a *testing.T value. 28 func NewCursor(t interface { 29 mock.TestingT 30 Cleanup(func()) 31 }) *Cursor { 32 mock := &Cursor{} 33 mock.Mock.Test(t) 34 35 t.Cleanup(func() { mock.AssertExpectations(t) }) 36 37 return mock 38 }