We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b80a1 commit f743bf5Copy full SHA for f743bf5
2 files changed
src/helpers.sh
@@ -158,7 +158,7 @@ function helper::get_provider_data() {
158
fi
159
160
data_provider_function=$(\
161
- grep -B 1 "function $function_name()" "$script" |\
+ grep -B 2 "function $function_name()" "$script" |\
162
grep -E "# *@?data_provider " |\
163
sed -E -e 's/\ *# *@?data_provider (.*)$/\1/g'\
164
|| true
tests/unit/helpers_test.sh
@@ -137,8 +137,8 @@ function fake_provider_data_array() {
137
}
138
139
function test_get_provider_data_array() {
140
- # shellcheck disable=SC2317
141
# @data_provider fake_provider_data_array
+ # shellcheck disable=SC2317
142
function fake_function_get_provider_data_array() {
143
return 0
144
0 commit comments