BenchmarkSetTransactionMetadata measures transaction metadata setup
(b *testing.B)
| 288 | |
| 289 | // BenchmarkSetTransactionMetadata measures transaction metadata setup |
| 290 | func BenchmarkSetTransactionMetadata(b *testing.B) { |
| 291 | b.ResetTimer() |
| 292 | for i := 0; i < b.N; i++ { |
| 293 | txn := createTestTransaction("source-001", "dest-001", fmt.Sprintf("ref-%d", i), 100.00) |
| 294 | setTransactionMetadata(txn) |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | // BenchmarkBigIntOperations measures big.Int arithmetic used in balance calculations |
| 299 | func BenchmarkBigIntOperations(b *testing.B) { |
nothing calls this directly
no test coverage detected