go/src/runtime/chan_test.go

func TestChan(t *testing.T) {}

func TestNonblockRecvRace(t *testing.T) {}

// This test checks that select acts on the state of the channels at one
// moment in the execution, not over a smeared time window.
// In the test, one goroutine does:
//
//	create c1, c2
//	make c1 ready for receiving
//	create second goroutine
//	make c2 ready for receiving
//	make c1 no longer ready for receiving (if possible)
//
// The second goroutine does a non-blocking select receiving from c1 and c2.
// From the time the second goroutine is created, at least one of c1 and c2
// is always ready for receiving, so the select in the second goroutine must
// always receive from one or the other. It must never execute the default case.
func TestNonblockSelectRace(t *testing.T) {}

// Same as TestNonblockSelectRace, but close(c2) replaces c2 <- 1.
func TestNonblockSelectRace2(t *testing.T) {}

func TestSelfSelect(t *testing.T) {}

func TestSelectStress(t *testing.T) {}

func TestSelectFairness(t *testing.T) {}

func TestChanSendInterface(t *testing.T) {}

func TestPseudoRandomSend(t *testing.T) {}

func TestMultiConsumer(t *testing.T) {}

func TestShrinkStackDuringBlockedSend(t *testing.T) {}

func TestNoShrinkStackWhileParking(t *testing.T) {}

func TestSelectDuplicateChannel(t *testing.T) {}

func TestSelectStackAdjust(t *testing.T) {}

type struct0

func BenchmarkMakeChan(b *testing.B) {}

func BenchmarkChanNonblocking(b *testing.B) {}

func BenchmarkSelectUncontended(b *testing.B) {}

func BenchmarkSelectSyncContended(b *testing.B) {}

func BenchmarkSelectAsyncContended(b *testing.B) {}

func BenchmarkSelectNonblock(b *testing.B) {}

func BenchmarkChanUncontended(b *testing.B) {}

func BenchmarkChanContended(b *testing.B) {}

func benchmarkChanSync(b *testing.B, work int) {}

func BenchmarkChanSync(b *testing.B) {}

func BenchmarkChanSyncWork(b *testing.B) {}

func benchmarkChanProdCons(b *testing.B, chanSize, localWork int) {}

func BenchmarkChanProdCons0(b *testing.B) {}

func BenchmarkChanProdCons10(b *testing.B) {}

func BenchmarkChanProdCons100(b *testing.B) {}

func BenchmarkChanProdConsWork0(b *testing.B) {}

func BenchmarkChanProdConsWork10(b *testing.B) {}

func BenchmarkChanProdConsWork100(b *testing.B) {}

func BenchmarkSelectProdCons(b *testing.B) {}

func BenchmarkReceiveDataFromClosedChan(b *testing.B) {}

func BenchmarkChanCreation(b *testing.B) {}

func BenchmarkChanSem(b *testing.B) {}

func BenchmarkChanPopular(b *testing.B) {}

func BenchmarkChanClosed(b *testing.B) {}

var alwaysFalse

var workSink

func localWork(w int) {}