Skip to content

Commit

Permalink
Update mapassign regex to match both call variants (#668)
Browse files Browse the repository at this point in the history
Different versions of `objdump` output `call` or `callq`.

Both work fine for the purposes of the test.

Fixes #650
  • Loading branch information
mhansen authored Nov 8, 2021
1 parent f987b9c commit e9b0287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/report/source_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestWebList(t *testing.T) {
}
output := buf.String()

for _, expect := range []string{"func busyLoop", "callq.*mapassign"} {
for _, expect := range []string{"func busyLoop", "call.*mapassign"} {
if match, _ := regexp.MatchString(expect, output); !match {
t.Errorf("weblist output does not contain '%s':\n%s", expect, output)
}
Expand Down

0 comments on commit e9b0287

Please sign in to comment.