diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd72a310..1300b614d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/eth-brownie/brownie) +### Fixed +- Add missing functions to code coverage report ([#1657](https://github.com/eth-brownie/brownie/pull/1657)) + ## [1.19.2](https://github.com/eth-brownie/brownie/tree/v1.19.2) - 2022-10-16 ### Added - Support for remappings in `from_explorer` ([#1596](https://github.com/eth-brownie/brownie/pull/1596)) diff --git a/brownie/test/output.py b/brownie/test/output.py index f2a950357..41c584c71 100644 --- a/brownie/test/output.py +++ b/brownie/test/output.py @@ -225,12 +225,11 @@ def _split(coverage_eval, coverage_map, key): results = {} branches = coverage_map["branches"][key] statements = coverage_map["statements"][key] - for fn in branches.keys() & statements.keys(): - results[fn] = [ - [i for i in statements[fn] if int(i) in coverage_eval[0]], - [i for i in branches[fn] if int(i) in coverage_eval[1]], - [i for i in branches[fn] if int(i) in coverage_eval[2]], - ] + for fn, map_ in statements.items(): + results[fn] = [[i for i in map_ if int(i) in coverage_eval[0]], [], []] + for fn, map_ in branches.items(): + results[fn][1] = [i for i in map_ if int(i) in coverage_eval[1]] + results[fn][2] = [i for i in map_ if int(i) in coverage_eval[2]] return results