BenchmarkApplyPrecision measures precision application to transactions
(b *testing.B)
| 278 | |
| 279 | // BenchmarkApplyPrecision measures precision application to transactions |
| 280 | func BenchmarkApplyPrecision(b *testing.B) { |
| 281 | b.ResetTimer() |
| 282 | for i := 0; i < b.N; i++ { |
| 283 | txn := createTestTransaction("source-001", "dest-001", "ref-001", 100.50) |
| 284 | txn.Precision = 100 |
| 285 | _ = model.ApplyPrecision(txn) |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | // BenchmarkSetTransactionMetadata measures transaction metadata setup |
| 290 | func BenchmarkSetTransactionMetadata(b *testing.B) { |
nothing calls this directly
no test coverage detected