(t *testing.T)
| 430 | } |
| 431 | |
| 432 | func 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 | |
| 448 | func TestValidateCreateBalanceMonitor(t *testing.T) { |
| 449 | tests := []struct { |
nothing calls this directly
no test coverage detected