59 lines
1.4 KiB
Go
59 lines
1.4 KiB
Go
// Code generated by mockery v2.53.3. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
context "context"
|
|
|
|
github "github.com/google/go-github/v71/github"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// RateLimitClient is an autogenerated mock type for the RateLimitClient type
|
|
type RateLimitClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// RateLimit provides a mock function with given fields: ctx
|
|
func (_m *RateLimitClient) RateLimit(ctx context.Context) (*github.RateLimits, error) {
|
|
ret := _m.Called(ctx)
|
|
|
|
if len(ret) == 0 {
|
|
panic("no return value specified for RateLimit")
|
|
}
|
|
|
|
var r0 *github.RateLimits
|
|
var r1 error
|
|
if rf, ok := ret.Get(0).(func(context.Context) (*github.RateLimits, error)); ok {
|
|
return rf(ctx)
|
|
}
|
|
if rf, ok := ret.Get(0).(func(context.Context) *github.RateLimits); ok {
|
|
r0 = rf(ctx)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(*github.RateLimits)
|
|
}
|
|
}
|
|
|
|
if rf, ok := ret.Get(1).(func(context.Context) error); ok {
|
|
r1 = rf(ctx)
|
|
} else {
|
|
r1 = ret.Error(1)
|
|
}
|
|
|
|
return r0, r1
|
|
}
|
|
|
|
// NewRateLimitClient creates a new instance of RateLimitClient. 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 NewRateLimitClient(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *RateLimitClient {
|
|
mock := &RateLimitClient{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|