MCPcopy Index your code
hub / github.com/apache/casbin-node-casbin / SpyAdapter

Interface SpyAdapter

test/managementAPI_self.test.ts:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { newEnforcer, Enforcer } from '../src';
2
3interface SpyAdapter {
4 loadPolicy: jest.Mock<Promise<boolean>, any[]>;
5 addPolicy: jest.Mock;
6 removePolicy: jest.Mock;
7 updatePolicy: jest.Mock;
8 removeFilteredPolicy: jest.Mock;
9 addPolicies: jest.Mock;
10 removePolicies: jest.Mock;
11 updatePolicies: jest.Mock;
12 savePolicy: jest.Mock;
13}
14
15function createSpyAdapter(): SpyAdapter {
16 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected