- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestChanOf (0.41 sec)
-
src/reflect/all_test.go
dt := New(ds).Elem() if st != dt.Type() { t.Errorf("StructOf returned %s, want %s", dt.Type(), st) } // This should not panic. _ = dt.Interface().(struct{ D1 }) } func TestChanOf(t *testing.T) { // check construction and use of type not in binary type T string ct := ChanOf(BothDir, TypeOf(T(""))) v := MakeChan(ct, 2) runtime.GC() v.Send(ValueOf(T("hello"))) runtime.GC()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)