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

Function TestToTransactionInflightCommitDateEmpty

api/model/model_test.go:432–446  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

430}
431
432func TestToTransactionInflightCommitDateEmpty(t *testing.T) {
433 recordTransaction := RecordTransaction{
434 Currency: "USD",
435 Source: "source1",
436 Description: "Test transaction",
437 Reference: "ref1",
438 Destination: "dest1",
439 Amount: 100,
440 Inflight: true,
441 }
442
443 transaction := recordTransaction.ToTransaction()
444
445 assert.True(t, transaction.InflightCommitDate.IsZero(), "InflightCommitDate should be zero when not provided")
446}
447
448func TestValidateCreateBalanceMonitor(t *testing.T) {
449 tests := []struct {

Callers

nothing calls this directly

Calls 1

ToTransactionMethod · 0.95

Tested by

no test coverage detected