Files
zgene 6bed393c12
Backend Tests / backend-unit-test (push) Has been cancelled
Backend Tests / benchmark-test (push) Has been cancelled
CI@main / Node.js v22 (ubuntu-latest) (push) Has been cancelled
Thrift Syntax Validation / validate-thrift (push) Has been cancelled
License Check / License Check (push) Has been cancelled
first commit
2026-05-14 13:29:56 +08:00

58 lines
1.7 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: contract.go
//
// Generated by this command:
//
// mockgen -destination permissionmock/permission_mock.go --package permissionmock -source contract.go
//
// Package permissionmock is a generated GoMock package.
package permissionmock
import (
context "context"
reflect "reflect"
model "github.com/coze-dev/coze-studio/backend/crossdomain/permission/model"
gomock "go.uber.org/mock/gomock"
)
// MockPermission is a mock of Permission interface.
type MockPermission struct {
ctrl *gomock.Controller
recorder *MockPermissionMockRecorder
isgomock struct{}
}
// MockPermissionMockRecorder is the mock recorder for MockPermission.
type MockPermissionMockRecorder struct {
mock *MockPermission
}
// NewMockPermission creates a new mock instance.
func NewMockPermission(ctrl *gomock.Controller) *MockPermission {
mock := &MockPermission{ctrl: ctrl}
mock.recorder = &MockPermissionMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPermission) EXPECT() *MockPermissionMockRecorder {
return m.recorder
}
// CheckAuthz mocks base method.
func (m *MockPermission) CheckAuthz(ctx context.Context, req *model.CheckAuthzData) (*model.CheckAuthzResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CheckAuthz", ctx, req)
ret0, _ := ret[0].(*model.CheckAuthzResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CheckAuthz indicates an expected call of CheckAuthz.
func (mr *MockPermissionMockRecorder) CheckAuthz(ctx, req any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckAuthz", reflect.TypeOf((*MockPermission)(nil).CheckAuthz), ctx, req)
}