- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for testLenNilChan (0.11 sec)
-
src/cmd/compile/internal/test/testdata/chan_test.go
v := make(chan int, 10) v <- 1 v <- 1 v <- 1 if want, got := 3, lenChan_ssa(v); got != want { t.Errorf("expected len(chan) = %d, got %d", want, got) } } func testLenNilChan(t *testing.T) { var v chan int if want, got := 0, lenChan_ssa(v); got != want { t.Errorf("expected len(nil) = %d, got %d", want, got) } } func testCapChan(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 23 06:40:04 UTC 2020 - 1.1K bytes - Viewed (0)