diff options
author | Björn Gustavsson <[email protected]> | 2017-12-14 04:51:47 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-12-14 05:16:29 +0100 |
commit | 21dd6e55877832f26a8d56f6874d6f86f689f064 (patch) | |
tree | f63f3ec1d6a611b5cbfe1d559f72b7957880c785 /lib/compiler/src/beam_disasm.erl | |
parent | aef39d929f4ccbe159ba1a98a2a67a877c32c73b (diff) | |
download | otp-21dd6e55877832f26a8d56f6874d6f86f689f064.tar.gz otp-21dd6e55877832f26a8d56f6874d6f86f689f064.tar.bz2 otp-21dd6e55877832f26a8d56f6874d6f86f689f064.zip |
beam_utils: Refactor combine_alloc_lists() to cover more lines
There are four uncovered lines in combine_heap_needs/2 and
combine_alloc_lists/2. There is no way to reach starting from
Erlang source code using the standard compiler. However, they
can be reached starting from BEAM assembly code, so we don't
want to remove them.
We could add a test case that covers the lines using assembly
code, but an easier solution is to rewrite the code in a more
generic way using sofs so that the code can be covered with
existing test cases.
Diffstat (limited to 'lib/compiler/src/beam_disasm.erl')
0 files changed, 0 insertions, 0 deletions