From e9b028704de05564913491f1fd347b790dee3cee Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Mon, 8 Nov 2021 15:44:17 +1100 Subject: [PATCH] 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 --- internal/report/source_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/report/source_test.go b/internal/report/source_test.go index 1524eafb..2a6b9cfb 100644 --- a/internal/report/source_test.go +++ b/internal/report/source_test.go @@ -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) }