go/src/sync/oncefunc_test.go

func TestOnceFunc(t *testing.T) {}

func TestOnceValue(t *testing.T) {}

func TestOnceValues(t *testing.T) {}

func testOncePanicX(t *testing.T, calls *int, f func()) {}

func testOncePanicWith(t *testing.T, calls *int, f func(), check func(label string, p any)) {}

func TestOnceFuncPanic(t *testing.T) {}

func TestOnceValuePanic(t *testing.T) {}

func TestOnceValuesPanic(t *testing.T) {}

func TestOnceFuncPanicNil(t *testing.T) {}

func TestOnceFuncGoexit(t *testing.T) {}

func TestOnceFuncPanicTraceback(t *testing.T) {}

func onceFuncPanic() {}

func TestOnceXGC(t *testing.T) {}

// gcwaitfin performs garbage collection and waits for all finalizers to run.
func gcwaitfin() {}

//go:linkname runtime_blockUntilEmptyFinalizerQueue runtime.blockUntilEmptyFinalizerQueue
func runtime_blockUntilEmptyFinalizerQueue(int64) bool

var onceFunc

var onceFuncOnce

func doOnceFunc() {}

func BenchmarkOnceFunc(b *testing.B) {}

var onceValue

var onceValueOnce

var onceValueValue

func doOnceValue() int {}

func BenchmarkOnceValue(b *testing.B) {}