MCPcopy
hub / github.com/apache/casbin / MockTransactionalAdapter

Struct MockTransactionalAdapter

transaction_test.go:27–29  ·  view source on GitHub ↗

MockTransactionalAdapter implements TransactionalAdapter interface for testing.

Source from the content-addressed store, hash-verified

25
26// MockTransactionalAdapter implements TransactionalAdapter interface for testing.
27type MockTransactionalAdapter struct {
28 Enforcer *Enforcer
29}
30
31// MockTransactionContext implements TransactionContext interface for testing.
32type MockTransactionContext struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected