MockTransactionContext implements TransactionContext interface for testing.
| 30 | |
| 31 | // MockTransactionContext implements TransactionContext interface for testing. |
| 32 | type MockTransactionContext struct { |
| 33 | adapter *MockTransactionalAdapter |
| 34 | committed bool |
| 35 | rolledBack bool |
| 36 | } |
| 37 | |
| 38 | // NewMockTransactionalAdapter creates a new mock adapter. |
| 39 | func NewMockTransactionalAdapter() *MockTransactionalAdapter { |
nothing calls this directly
no outgoing calls
no test coverage detected