Example #1
0
def test_coverage_summary_by_changeset_impl(coverage_responses,
                                            coverage_builds):
    # Get changeset coverage summary from coverage information
    for changeset in coverage_builds['summary']:
        coverage_data = coverage_builds['info'][changeset]
        summary = coverage_summary_by_changeset_impl.generate(coverage_data)
        assert summary == coverage_builds['summary'][changeset]
Example #2
0
def coverage_summary_by_changeset(changeset):
    result, code = coverage_by_changeset(changeset)
    if code != 200:
        return result, code
    else:
        return coverage_summary_by_changeset_impl.generate(result), 200
Example #3
0
def test_coverage_summary_by_changeset_impl(coverage_builds):
    # Get changeset coverage summary from coverage information
    for changeset, expected in coverage_builds['summary'].items():
        coverage_data = coverage_builds['info'][changeset]
        summary = coverage_summary_by_changeset_impl.generate(coverage_data)
        assert summary == expected