2024-04-11 05:37:59 +02:00
// Code generated by mockery v2.42.2. DO NOT EDIT.
2020-09-30 09:14:00 +02:00
package orm
import (
2022-11-24 11:07:42 +01:00
orm "github.com/beego/beego/v2/client/orm"
2020-09-30 09:14:00 +02:00
mock "github.com/stretchr/testify/mock"
)
// Creator is an autogenerated mock type for the Creator type
type Creator struct {
mock . Mock
}
// Create provides a mock function with given fields:
func ( _m * Creator ) Create ( ) orm . Ormer {
ret := _m . Called ( )
2024-04-11 05:37:59 +02:00
if len ( ret ) == 0 {
panic ( "no return value specified for Create" )
}
2020-09-30 09:14:00 +02:00
var r0 orm . Ormer
if rf , ok := ret . Get ( 0 ) . ( func ( ) orm . Ormer ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( orm . Ormer )
}
}
return r0
}
2022-06-07 10:04:33 +02:00
2023-11-05 07:37:25 +01:00
// NewCreator creates a new instance of Creator. 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 NewCreator ( t interface {
2022-06-07 10:04:33 +02:00
mock . TestingT
Cleanup ( func ( ) )
2023-11-05 07:37:25 +01:00
} ) * Creator {
2022-06-07 10:04:33 +02:00
mock := & Creator { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}