Skip to content

Commit 611cc89

Browse files
committed
tests: TestLinknameMethods
1 parent a56fc04 commit 611cc89

File tree

2 files changed

+472
-0
lines changed

2 files changed

+472
-0
lines changed

tests/linkname_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/google/go-cmp/cmp"
7+
"github.com/gopherjs/gopherjs/tests/testdata/linkname/method"
78
"github.com/gopherjs/gopherjs/tests/testdata/linkname/one"
89
)
910

@@ -24,3 +25,12 @@ func TestLinknames(t *testing.T) {
2425
t.Fatalf("Callink linknamed functions returned a diff (-want,+got):\n%s", diff)
2526
}
2627
}
28+
29+
func TestLinknameMethods(t *testing.T) {
30+
defer func() {
31+
if err := recover(); err != nil {
32+
t.Fatalf("method.TestLinkname() paniced: %s", err)
33+
}
34+
}()
35+
method.TestLinkname()
36+
}

0 commit comments

Comments
 (0)