serializer.*MockSerializer.Serialize   A
last analyzed

Complexity

Conditions 4

Size

Total Lines 20
Code Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 14
nop 2
dl 0
loc 20
rs 9.7
c 0
b 0
f 0
1
// Code generated by mockery v1.0.0. DO NOT EDIT.
2
3
package serializer
4
5
import mock "github.com/stretchr/testify/mock"
6
7
// MockSerializer is an autogenerated mock type for the Serializer type
8
type MockSerializer struct {
9
	mock.Mock
10
}
11
12
// Serialize provides a mock function with given fields: data, format
13
func (_m *MockSerializer) Serialize(data interface{}, format string) ([]byte, error) {
14
	ret := _m.Called(data, format)
15
16
	var r0 []byte
17
	if rf, ok := ret.Get(0).(func(interface{}, string) []byte); ok {
18
		r0 = rf(data, format)
19
	} else {
20
		if ret.Get(0) != nil {
21
			r0 = ret.Get(0).([]byte)
22
		}
23
	}
24
25
	var r1 error
26
	if rf, ok := ret.Get(1).(func(interface{}, string) error); ok {
27
		r1 = rf(data, format)
28
	} else {
29
		r1 = ret.Error(1)
30
	}
31
32
	return r0, r1
33
}
34