56 lines
1.6 KiB
Go
56 lines
1.6 KiB
Go
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: ./token.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -source=./token.go -destination=../../mock/repository/token.go -package=repository
|
|
//
|
|
|
|
// Package repository is a generated GoMock package.
|
|
package repository
|
|
|
|
import (
|
|
entity "ark-permission/internal/entity"
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockTokenRepository is a mock of TokenRepository interface.
|
|
type MockTokenRepository struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockTokenRepositoryMockRecorder
|
|
}
|
|
|
|
// MockTokenRepositoryMockRecorder is the mock recorder for MockTokenRepository.
|
|
type MockTokenRepositoryMockRecorder struct {
|
|
mock *MockTokenRepository
|
|
}
|
|
|
|
// NewMockTokenRepository creates a new mock instance.
|
|
func NewMockTokenRepository(ctrl *gomock.Controller) *MockTokenRepository {
|
|
mock := &MockTokenRepository{ctrl: ctrl}
|
|
mock.recorder = &MockTokenRepositoryMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockTokenRepository) EXPECT() *MockTokenRepositoryMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// Create mocks base method.
|
|
func (m *MockTokenRepository) Create(ctx context.Context, token entity.Token) error {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "Create", ctx, token)
|
|
ret0, _ := ret[0].(error)
|
|
return ret0
|
|
}
|
|
|
|
// Create indicates an expected call of Create.
|
|
func (mr *MockTokenRepositoryMockRecorder) Create(ctx, token any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockTokenRepository)(nil).Create), ctx, token)
|
|
}
|