~evanj/cms

ref: 356e3f389fe3e9167cffb270f41b6f2b22eb202a cms/internal/c/stripe/stripe_mock.go -rw-r--r-- 1.4 KiB
356e3f38Evan J Feat(context): Completed adding context to data layer. Refactored tests 1 year, 13 days ago
                                                                                
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
// Code generated by MockGen. DO NOT EDIT.
// Source: stripe.go

// Package stripe is a generated GoMock package.
package stripe

import (
	context "context"
	gomock "github.com/golang/mock/gomock"
	reflect "reflect"
)

// MockStriper is a mock of Striper interface
type MockStriper struct {
	ctrl     *gomock.Controller
	recorder *MockStriperMockRecorder
}

// MockStriperMockRecorder is the mock recorder for MockStriper
type MockStriperMockRecorder struct {
	mock *MockStriper
}

// NewMockStriper creates a new mock instance
func NewMockStriper(ctrl *gomock.Controller) *MockStriper {
	mock := &MockStriper{ctrl: ctrl}
	mock.recorder = &MockStriperMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStriper) EXPECT() *MockStriperMockRecorder {
	return m.recorder
}

// CompleteCheckout mocks base method
func (m *MockStriper) CompleteCheckout(ctx context.Context, sessionID string) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CompleteCheckout", ctx, sessionID)
	ret0, _ := ret[0].(error)
	return ret0
}

// CompleteCheckout indicates an expected call of CompleteCheckout
func (mr *MockStriperMockRecorder) CompleteCheckout(ctx, sessionID interface{}) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteCheckout", reflect.TypeOf((*MockStriper)(nil).CompleteCheckout), ctx, sessionID)
}