MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / RecordTransaction

Method RecordTransaction

database/mocks/repo_mocks.go:36–39  ·  view source on GitHub ↗

Transaction methods

(ctx context.Context, txn *model.Transaction)

Source from the content-addressed store, hash-verified

34// Transaction methods
35
36func (m *MockDataSource) RecordTransaction(ctx context.Context, txn *model.Transaction) (*model.Transaction, error) {
37 args := m.Called(ctx, txn)
38 return args.Get(0).(*model.Transaction), args.Error(1)
39}
40
41func (m *MockDataSource) RecordTransactionWithBalances(ctx context.Context, txn *model.Transaction, sourceBalance, destinationBalance *model.Balance) (*model.Transaction, error) {
42 args := m.Called(ctx, txn, sourceBalance, destinationBalance)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected