(seed int64)
| 504 | } |
| 505 | |
| 506 | func testIDGen(seed int64) ast.IDGenerator { |
| 507 | seen := map[int64]int64{} |
| 508 | return func(originalID int64) int64 { |
| 509 | if id, found := seen[originalID]; found { |
| 510 | return id |
| 511 | } |
| 512 | seed++ |
| 513 | seen[originalID] = seed |
| 514 | return seed |
| 515 | } |
| 516 | } |
no outgoing calls
no test coverage detected