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

Struct MockTransactionContext

transaction_test.go:32–36  ·  view source on GitHub ↗

MockTransactionContext implements TransactionContext interface for testing.

Source from the content-addressed store, hash-verified

30
31// MockTransactionContext implements TransactionContext interface for testing.
32type MockTransactionContext struct {
33 adapter *MockTransactionalAdapter
34 committed bool
35 rolledBack bool
36}
37
38// NewMockTransactionalAdapter creates a new mock adapter.
39func NewMockTransactionalAdapter() *MockTransactionalAdapter {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected