github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/compiler/natives/src/sync/atomic/atomic_test.go (about) 1 // +build js 2 3 package atomic_test 4 5 import "testing" 6 7 func TestHammerStoreLoad(t *testing.T) { 8 t.Skip("use of unsafe") 9 } 10 11 func shouldPanic(t *testing.T, name string, f func()) { 12 defer func() { 13 if recover() == nil { 14 t.Errorf("%s did not panic", name) 15 } 16 }() 17 f() 18 }