mocks/mock_GomailDealer.go   A
last analyzed

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 4
eloc 25
dl 0
loc 44
rs 10
c 0
b 0
f 0

4 Methods

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