2022-05-20 19:52:54 +00:00
// Code generated by mockery v2.12.2. DO NOT EDIT.
package mocks
import (
2022-05-20 20:57:45 +00:00
context "context"
2022-05-20 19:52:54 +00:00
2022-05-20 20:57:45 +00:00
store "git.netflux.io/rob/elon-eats-my-tweets/generated/store"
2022-05-20 19:52:54 +00:00
mock "github.com/stretchr/testify/mock"
testing "testing"
)
// Store is an autogenerated mock type for the Store type
type Store struct {
mock . Mock
}
2022-05-20 20:57:45 +00:00
// CreateUser provides a mock function with given fields: _a0, _a1
func ( _m * Store ) CreateUser ( _a0 context . Context , _a1 store . CreateUserParams ) ( store . User , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-05-20 19:52:54 +00:00
2022-05-20 20:57:45 +00:00
var r0 store . User
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , store . CreateUserParams ) store . User ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-05-20 19:52:54 +00:00
} else {
2022-05-20 20:57:45 +00:00
r0 = ret . Get ( 0 ) . ( store . User )
2022-05-20 19:52:54 +00:00
}
var r1 error
2022-05-20 20:57:45 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , store . CreateUserParams ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-05-20 19:52:54 +00:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-05-24 19:20:28 +00:00
// GetLastElonTweet provides a mock function with given fields: _a0
func ( _m * Store ) GetLastElonTweet ( _a0 context . Context ) ( store . ElonTweet , error ) {
ret := _m . Called ( _a0 )
var r0 store . ElonTweet
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) store . ElonTweet ) ; ok {
r0 = rf ( _a0 )
} else {
r0 = ret . Get ( 0 ) . ( store . ElonTweet )
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( _a0 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// UpsertElonTweet provides a mock function with given fields: _a0, _a1
func ( _m * Store ) UpsertElonTweet ( _a0 context . Context , _a1 store . UpsertElonTweetParams ) ( store . ElonTweet , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 store . ElonTweet
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , store . UpsertElonTweetParams ) store . ElonTweet ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
r0 = ret . Get ( 0 ) . ( store . ElonTweet )
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , store . UpsertElonTweetParams ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-05-20 19:52:54 +00:00
// NewStore creates a new instance of Store. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func NewStore ( t testing . TB ) * Store {
mock := & Store { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}