Helper function for big.Int map comparisons
(got, want map[string]*big.Int)
| 33 | |
| 34 | // Helper function for big.Int map comparisons |
| 35 | func bigIntMapsEqual(got, want map[string]*big.Int) bool { |
| 36 | if len(got) != len(want) { |
| 37 | return false |
| 38 | } |
| 39 | for k, v := range want { |
| 40 | if gotVal, ok := got[k]; !ok || gotVal.Cmp(v) != 0 { |
| 41 | return false |
| 42 | } |
| 43 | } |
| 44 | return true |
| 45 | } |
| 46 | |
| 47 | // Helper to convert float64 to *big.Int with precision applied |
| 48 | func floatToBigInt(value float64, precision int64) *big.Int { |
no outgoing calls
no test coverage detected