~amirouche/mutation

10ba050d3d5f8e06e68703c4947d7a46a6e3c82e — Amirouche 7 months ago 2538cfa
mutation: ignore files without coverage.
1 files changed, 5 insertions(+), 0 deletions(-)

M mutation.py
M mutation.py => mutation.py +5 -0
@@ 434,6 434,11 @@ async def pool_for_each_par_map(loop, pool, f, p, iterator):

def mutation_create(item):
    path, source, coverage, mutation_predicate = item

    if not coverage:
        log.trace("Ignoring file {} because there is no associated coverage.", path)
        return []

    log.trace("Mutating file: {}...", path)
    mutations = [m for m in Mutation.ALL if mutation_predicate(m)]
    deltas = deltas_compute(source, path, coverage, mutations)