This repository has been archived on 2022-05-25 . You can view files and clone it, but cannot push or open issues or pull requests.
2022-05-20 22:34:20 +00:00
// Code generated by mockery v2.12.2. DO NOT EDIT.
package mocks
import (
testing "testing"
mock "github.com/stretchr/testify/mock"
twitter "git.netflux.io/rob/elon-eats-my-tweets/twitter"
)
2022-05-21 05:44:01 +00:00
// TwitterAPIClient is an autogenerated mock type for the TwitterAPIClient type
2022-05-20 22:34:20 +00:00
type TwitterAPIClient struct {
mock . Mock
}
// GetMe provides a mock function with given fields:
func ( _m * TwitterAPIClient ) GetMe ( ) ( * twitter . User , error ) {
ret := _m . Called ( )
var r0 * twitter . User
if rf , ok := ret . Get ( 0 ) . ( func ( ) * twitter . User ) ; ok {
r0 = rf ( )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * twitter . User )
}
}
var r1 error
if rf , ok := ret . Get ( 1 ) . ( func ( ) error ) ; ok {
r1 = rf ( )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// NewTwitterAPIClient creates a new instance of TwitterAPIClient. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func NewTwitterAPIClient ( t testing . TB ) * TwitterAPIClient {
mock := & TwitterAPIClient { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}