- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Testing (0.17 sec)
-
src/cmd/cgo/internal/test/callback.go
if f == nil { panic("missing callback function") } f() } func testCallback(t *testing.T) { var x = false nestedCall(func() { x = true }) if !x { t.Fatal("nestedCall did not call func") } } func testCallbackGC(t *testing.T) { nestedCall(runtime.GC) } func testCallbackPanic(t *testing.T) { // Make sure panic during callback unwinds properly. if lockedOSThread() {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 111.5K bytes - Viewed (0)