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

Function TestBatchReferenceCheckEnabled

transaction_batch_test.go:277–289  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

275}
276
277func TestBatchReferenceCheckEnabled(t *testing.T) {
278 ledgerforgeInstance := &LedgerForge{
279 config: &config.Configuration{
280 Transaction: config.TransactionConfig{
281 DisableBatchReferenceCheck: false,
282 },
283 },
284 }
285 assert.True(t, ledgerforgeInstance.batchReferenceCheckEnabled())
286
287 ledgerforgeInstance.config.Transaction.DisableBatchReferenceCheck = true
288 assert.False(t, ledgerforgeInstance.batchReferenceCheckEnabled())
289}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected