/
ResponseSuccess.go
43 lines (33 loc) · 1.22 KB
/
ResponseSuccess.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
// Code generated by mockery v2.14.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
// ResponseSuccess is an autogenerated mock type for the ResponseSuccess type
type ResponseSuccess struct {
mock.Mock
}
// Data provides a mock function with given fields: contentType, data
func (_m *ResponseSuccess) Data(contentType string, data []byte) {
_m.Called(contentType, data)
}
// Json provides a mock function with given fields: obj
func (_m *ResponseSuccess) Json(obj interface{}) {
_m.Called(obj)
}
// String provides a mock function with given fields: format, values
func (_m *ResponseSuccess) String(format string, values ...interface{}) {
var _ca []interface{}
_ca = append(_ca, format)
_ca = append(_ca, values...)
_m.Called(_ca...)
}
type mockConstructorTestingTNewResponseSuccess interface {
mock.TestingT
Cleanup(func())
}
// NewResponseSuccess creates a new instance of ResponseSuccess. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewResponseSuccess(t mockConstructorTestingTNewResponseSuccess) *ResponseSuccess {
mock := &ResponseSuccess{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}