driftctl/pkg/remote/github/mock_GithubRepository.go

80 lines
1.5 KiB
Go
Raw Normal View History

2021-02-15 13:24:20 +00:00
// Code generated by mockery v2.3.0. DO NOT EDIT.
package github
import mock "github.com/stretchr/testify/mock"
2021-02-16 09:51:40 +00:00
// MockGithubRepository is an autogenerated mock type for the GithubRepository type
type MockGithubRepository struct {
2021-02-15 13:24:20 +00:00
mock.Mock
}
2021-02-26 15:12:27 +00:00
// ListMembership provides a mock function with given fields:
func (_m *MockGithubRepository) ListMembership() ([]string, error) {
ret := _m.Called()
var r0 []string
if rf, ok := ret.Get(0).(func() []string); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]string)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
2021-02-15 13:24:20 +00:00
// ListRepositories provides a mock function with given fields:
2021-02-16 10:46:03 +00:00
func (_m *MockGithubRepository) ListRepositories() ([]string, error) {
2021-02-15 13:24:20 +00:00
ret := _m.Called()
2021-02-16 10:46:03 +00:00
var r0 []string
if rf, ok := ret.Get(0).(func() []string); ok {
2021-02-15 13:24:20 +00:00
r0 = rf()
} else {
if ret.Get(0) != nil {
2021-02-16 10:46:03 +00:00
r0 = ret.Get(0).([]string)
2021-02-15 13:24:20 +00:00
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}
2021-02-24 12:55:26 +00:00
// ListTeams provides a mock function with given fields:
func (_m *MockGithubRepository) ListTeams() ([]int, error) {
ret := _m.Called()
var r0 []int
if rf, ok := ret.Get(0).(func() []int); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).([]int)
}
}
var r1 error
if rf, ok := ret.Get(1).(func() error); ok {
r1 = rf()
} else {
r1 = ret.Error(1)
}
return r0, r1
}