We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0c613 commit 51b8c4fCopy full SHA for 51b8c4f
infra/base-images/base-builder/compile_native_go_fuzzer
@@ -15,6 +15,8 @@
15
#
16
################################################################################
17
18
+set -x
19
+
20
function build_native_go_fuzzer() {
21
fuzzer=$1
22
function=$2
@@ -52,7 +54,7 @@ abs_file_dir=$(go list $tags -f {{.Dir}} $path)
52
54
fuzzer_filename=$(grep -r -l --include='*.go' -s "$function" "${abs_file_dir}")
53
55
56
# Test if file contains a line with "func $function" and "testing.F".
-if [ $(grep -r "func $function" $fuzzer_filename | grep "testing.F" | wc -l) -eq 1 ]
57
+if [ $(grep -r "func $function(" $fuzzer_filename | grep "testing.F" | wc -l) -eq 1 ]
58
then
59
build_native_go_fuzzer $fuzzer $function $abs_file_dir
60
else
0 commit comments