aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-12-14 04:51:47 +0100
committerBjörn Gustavsson <[email protected]>2017-12-14 05:16:29 +0100
commit21dd6e55877832f26a8d56f6874d6f86f689f064 (patch)
treef63f3ec1d6a611b5cbfe1d559f72b7957880c785 /lib/common_test
parentaef39d929f4ccbe159ba1a98a2a67a877c32c73b (diff)
downloadotp-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/common_test')
0 files changed, 0 insertions, 0 deletions