| 645 | } |
| 646 | |
| 647 | static void |
| 648 | updateStats( |
| 649 | Resolution& resolution, |
| 650 | std::vector<Support>& supports, |
| 651 | const SupportMap& repeatSupportMap, |
| 652 | bool inHistSample) |
| 653 | { |
| 654 | for (const auto& intigIdxAndOutigsSupp : repeatSupportMap) { |
| 655 | for (const auto& outigIdxAndSupp : intigIdxAndOutigsSupp.second) { |
| 656 | const auto& support = outigIdxAndSupp.second; |
| 657 | |
| 658 | supports.push_back(support); |
| 659 | |
| 660 | if (!support.unknown()) { |
| 661 | assert(support.found >= 0); |
| 662 | assert(support.tests >= 0); |
| 663 | if (inHistSample) { |
| 664 | resolution.findsHistogram.insert(support.found); |
| 665 | resolution.fractionFindsHistogram.insert( |
| 666 | double(support.found) / double(support.tests)); |
| 667 | } |
| 668 | } |
| 669 | |
| 670 | assert(support.calculatedTests >= 0); |
| 671 | if (inHistSample) { |
| 672 | resolution.calculatedTestsHistogram.insert(support.calculatedTests); |
| 673 | } |
| 674 | } |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | static bool |
| 679 | isSmallRepeat(const ContigNode& node) |
no test coverage detected