(t *testing.T, msg string, m map[int]int, expected map[int]int)
| 533 | } |
| 534 | |
| 535 | func testIntMapsEq(t *testing.T, msg string, m map[int]int, expected map[int]int) { |
| 536 | if len(m) != len(expected) { |
| 537 | t.Errorf("%s: map length mismatch got:%d expected:%d", msg, len(m), len(expected)) |
| 538 | return |
| 539 | } |
| 540 | for k, v := range m { |
| 541 | if expected[k] != v { |
| 542 | t.Errorf("%s: value mismatch for key %d, got:%d expected:%d", msg, k, v, expected[k]) |
| 543 | } |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | func TestComputePartMap(t *testing.T) { |
| 548 | partDataSize = 100 |
no outgoing calls
no test coverage detected