- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestChanSendInterface (0.24 sec)
-
src/runtime/chan_test.go
stddev := math.Sqrt(variance) if math.Abs(float64(cnt1-mean)) > 10*stddev { t.Errorf("unfair select: in %d trials, results were %d, %d", trials, cnt1, cnt2) } close(done) wg.Wait() } func TestChanSendInterface(t *testing.T) { type mt struct{} m := &mt{} c := make(chan any, 1) c <- m select { case c <- m: default: } select { case c <- m: case c <- &mt{}: default: }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:47:35 UTC 2023 - 23.4K bytes - Viewed (0)