mocks/mock_SendCloser.go   A
last analyzed

Size/Duplication

Total Lines 57
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 6
eloc 32
dl 0
loc 57
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A mocks.*MockSendCloser.Send 0 5 1
A mocks.*MockSendCloser.Close 0 5 1
A mocks.*MockSendCloser.EXPECT 0 2 1
A mocks.*MockSendCloserMockRecorder.Close 0 3 1
A mocks.*MockSendCloserMockRecorder.Send 0 3 1
A mocks.NewMockSendCloser 0 4 1
1
// Code generated by MockGen. DO NOT EDIT.
2
// Source: gopkg.in/gomail.v2 (interfaces: SendCloser)
3
4
// Package mocks is a generated GoMock package.
5
package mocks
6
7
import (
8
	gomock "github.com/golang/mock/gomock"
9
	io "io"
10
	reflect "reflect"
11
)
12
13
// MockSendCloser is a mock of SendCloser interface
14
type MockSendCloser struct {
15
	ctrl     *gomock.Controller
16
	recorder *MockSendCloserMockRecorder
17
}
18
19
// MockSendCloserMockRecorder is the mock recorder for MockSendCloser
20
type MockSendCloserMockRecorder struct {
21
	mock *MockSendCloser
22
}
23
24
// NewMockSendCloser creates a new mock instance
25
func NewMockSendCloser(ctrl *gomock.Controller) *MockSendCloser {
26
	mock := &MockSendCloser{ctrl: ctrl}
27
	mock.recorder = &MockSendCloserMockRecorder{mock}
28
	return mock
29
}
30
31
// EXPECT returns an object that allows the caller to indicate expected use
32
func (m *MockSendCloser) EXPECT() *MockSendCloserMockRecorder {
33
	return m.recorder
34
}
35
36
// Close mocks base method
37
func (m *MockSendCloser) Close() error {
38
	m.ctrl.T.Helper()
39
	ret := m.ctrl.Call(m, "Close")
40
	ret0, _ := ret[0].(error)
41
	return ret0
42
}
43
44
// Close indicates an expected call of Close
45
func (mr *MockSendCloserMockRecorder) Close() *gomock.Call {
46
	mr.mock.ctrl.T.Helper()
47
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendCloser)(nil).Close))
48
}
49
50
// Send mocks base method
51
func (m *MockSendCloser) Send(arg0 string, arg1 []string, arg2 io.WriterTo) error {
52
	m.ctrl.T.Helper()
53
	ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2)
54
	ret0, _ := ret[0].(error)
55
	return ret0
56
}
57
58
// Send indicates an expected call of Send
59
func (mr *MockSendCloserMockRecorder) Send(arg0, arg1, arg2 interface{}) *gomock.Call {
60
	mr.mock.ctrl.T.Helper()
61
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockSendCloser)(nil).Send), arg0, arg1, arg2)
62
}
63