(records, universe, row, budget, gate)
| 524 | |
| 525 | |
| 526 | def _join(records, universe, row, budget, gate): |
| 527 | position = 0 |
| 528 | for record in records: |
| 529 | gate.step() |
| 530 | while position < len(universe): |
| 531 | gate.step() |
| 532 | order = _record_order(universe[position], record, gate) |
| 533 | if order >= 0: |
| 534 | break |
| 535 | position += 1 |
| 536 | if position == len(universe) or order != 0: |
| 537 | raise ProfileMapCompatibilityError("observation identity outside universe") |
| 538 | if len(record.counters) != len(universe[position].counters): |
| 539 | raise ProfileMapCompatibilityError("observation counter shape mismatch") |
| 540 | if _has_hit(record, gate) and position not in row.ids: |
| 541 | budget.reference() |
| 542 | row.ids.add(position) |
| 543 | position += 1 |
| 544 | if len(records) != len(universe): |
| 545 | row.mark(_PARTIAL) |
| 546 | |
| 547 | |
| 548 | def _base_reasons(row, gate): |
no test coverage detected