This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
/
post_http_helper.go
51 lines (43 loc) · 1.68 KB
/
post_http_helper.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
// Code generated by MockGen. DO NOT EDIT.
// Source: contracts/post_http_helper.go
// Package mocks is a generated GoMock package.
package mocks
import (
contracts "github.com/emelnychenko/go-press/contracts"
errors "github.com/emelnychenko/go-press/errors"
models "github.com/emelnychenko/go-press/models"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockPostHttpHelper is a mock of PostHttpHelper interface
type MockPostHttpHelper struct {
ctrl *gomock.Controller
recorder *MockPostHttpHelperMockRecorder
}
// MockPostHttpHelperMockRecorder is the mock recorder for MockPostHttpHelper
type MockPostHttpHelperMockRecorder struct {
mock *MockPostHttpHelper
}
// NewMockPostHttpHelper creates a new mock instance
func NewMockPostHttpHelper(ctrl *gomock.Controller) *MockPostHttpHelper {
mock := &MockPostHttpHelper{ctrl: ctrl}
mock.recorder = &MockPostHttpHelperMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockPostHttpHelper) EXPECT() *MockPostHttpHelperMockRecorder {
return m.recorder
}
// ParsePostId mocks base method
func (m *MockPostHttpHelper) ParsePostId(httpContext contracts.HttpContext) (*models.PostId, errors.Error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ParsePostId", httpContext)
ret0, _ := ret[0].(*models.PostId)
ret1, _ := ret[1].(errors.Error)
return ret0, ret1
}
// ParsePostId indicates an expected call of ParsePostId
func (mr *MockPostHttpHelperMockRecorder) ParsePostId(httpContext interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParsePostId", reflect.TypeOf((*MockPostHttpHelper)(nil).ParsePostId), httpContext)
}