Skip to content

Commit d1f049d

Browse files
authored
chore(shellcheck): silence intentional SC2016 in coverage tests (#651)
1 parent 35af0bf commit d1f049d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/unit/coverage_executable_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ function test_coverage_is_executable_line_returns_false_for_done_with_file_redir
241241

242242
function test_coverage_is_executable_line_returns_false_for_done_with_herestring() {
243243
local result
244+
# shellcheck disable=SC2016
244245
result=$(bashunit::coverage::is_executable_line ' done <<<"$var"' 2 && echo "yes" || echo "no")
245246
assert_equals "no" "$result"
246247
}
@@ -253,6 +254,7 @@ function test_coverage_is_executable_line_returns_false_for_done_with_process_su
253254

254255
function test_coverage_is_executable_line_returns_false_for_done_with_redirect_and_comment() {
255256
local result
257+
# shellcheck disable=SC2016
256258
result=$(bashunit::coverage::is_executable_line ' done < "$file" # read input' 2 && echo "yes" || echo "no")
257259
assert_equals "no" "$result"
258260
}

0 commit comments

Comments
 (0)