Skip to content

Commit e9b0287

Browse files
authored
Update mapassign regex to match both call variants (#668)
Different versions of `objdump` output `call` or `callq`. Both work fine for the purposes of the test. Fixes #650
1 parent f987b9c commit e9b0287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/report/source_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestWebList(t *testing.T) {
4747
}
4848
output := buf.String()
4949

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

0 commit comments

Comments
 (0)