Commit 57546050 authored by Hugo Moreau's avatar Hugo Moreau

blackboxing more than expected

it appeared that not blackbox function call were modified anyway. It is
now fixed.

 * tools/blackbox.go : Here.
parent c2227c10
Pipeline #26462 passed with stage
in 2 minutes and 26 seconds
......@@ -87,9 +87,11 @@ func RewriteBlackbox(inputfile string, funs []string, global bool, outputdir str
switch f := callexp.Fun.(type) {
case *ast.Ident:
f.Name = "blackbox." +
strings.ToUpper(string(f.Name[0])) +
f.Name[1:]
if find(funs, f.Name) {
f.Name = "blackbox." +
strings.ToUpper(string(f.Name[0])) +
f.Name[1:]
}
}
return true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment