Loading test/test_helper.bash +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ teardown() { stub() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" shift Loading @@ -52,6 +53,7 @@ stub() { stub_repeated() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" export "${prefix}_STUB_NOINDEX"=1 stub "$@" Loading @@ -59,6 +61,7 @@ stub_repeated() { unstub() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" local path="${TMP}/bin/${program}" Loading Loading
test/test_helper.bash +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ teardown() { stub() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" shift Loading @@ -52,6 +53,7 @@ stub() { stub_repeated() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" export "${prefix}_STUB_NOINDEX"=1 stub "$@" Loading @@ -59,6 +61,7 @@ stub_repeated() { unstub() { local program="$1" # shellcheck disable=SC2155 local prefix="$(echo "$program" | tr a-z- A-Z_)" local path="${TMP}/bin/${program}" Loading