forked from vektra/mockery
/
RequesterVariadicOneArgument.go
81 lines (61 loc) · 1.92 KB
/
RequesterVariadicOneArgument.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Code generated by mockery. DO NOT EDIT.
package mocks
import (
io "io"
mock "github.com/stretchr/testify/mock"
testing "testing"
)
// RequesterVariadicOneArgument is an autogenerated mock type for the RequesterVariadic type
type RequesterVariadicOneArgument struct {
mock.Mock
}
// Get provides a mock function with given fields: values
func (_m *RequesterVariadicOneArgument) Get(values ...string) bool {
ret := _m.Called(values)
var r0 bool
if rf, ok := ret.Get(0).(func(...string) bool); ok {
r0 = rf(values...)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// MultiWriteToFile provides a mock function with given fields: filename, w
func (_m *RequesterVariadicOneArgument) MultiWriteToFile(filename string, w ...io.Writer) string {
ret := _m.Called(filename, w)
var r0 string
if rf, ok := ret.Get(0).(func(string, ...io.Writer) string); ok {
r0 = rf(filename, w...)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// OneInterface provides a mock function with given fields: a
func (_m *RequesterVariadicOneArgument) OneInterface(a ...interface{}) bool {
ret := _m.Called(a)
var r0 bool
if rf, ok := ret.Get(0).(func(...interface{}) bool); ok {
r0 = rf(a...)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Sprintf provides a mock function with given fields: format, a
func (_m *RequesterVariadicOneArgument) Sprintf(format string, a ...interface{}) string {
ret := _m.Called(format, a)
var r0 string
if rf, ok := ret.Get(0).(func(string, ...interface{}) string); ok {
r0 = rf(format, a...)
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// NewRequesterVariadicOneArgument creates a new instance of RequesterVariadicOneArgument. It also registers a cleanup function to assert the mocks expectations.
func NewRequesterVariadicOneArgument(t testing.TB) *RequesterVariadicOneArgument {
mock := &RequesterVariadicOneArgument{}
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}