(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func TestChan_C(t *testing.T) { |
| 12 | var c = percpu.NewChan[zero.Zero](10) |
| 13 | c.C() <- zero.Zero{} |
| 14 | |
| 15 | t.Log(<-c.C()) |
| 16 | |
| 17 | select { |
| 18 | case <-c.C(): |
| 19 | t.Fatal("should not return from here") |
| 20 | default: |
| 21 | t.Log("ok") |
| 22 | } |
| 23 | } |