(t *testing.T)
| 275 | } |
| 276 | |
| 277 | func 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 | } |
nothing calls this directly
no test coverage detected