Home | History | Annotate | Download | only in reflect

Lines Matching refs:Chan

76 	{struct{ x (chan<- string) }{}, "chan<- string"},
79 c chan *int32
83 "struct { c chan *int32; d float32 }",
88 c func(chan *integer, *int8)
91 "struct { c func(chan *reflect_test.integer, *int8) }",
196 {new(chan<- string), "chan<- string"},
199 c chan *int32
202 "struct { c chan *int32; d float32 }{chan *int32, 0}",
204 {new(struct{ c func(chan *integer, *int8) }),
205 "struct { c func(chan *reflect_test.integer, *int8) }{func(chan *reflect_test.integer, *int8)(0)}",
332 {new(chan *T), "*chan *reflect_test.T(&chan *reflect_test.T)"},
408 c chan *int32
411 testType(t, 3, typ, "*struct { c chan *int32; d float32 }")
413 testType(t, 4, etyp, "struct { c chan *int32; d float32 }")
416 testType(t, 5, f.Type, "chan *int32")
439 typ = TypeOf((chan<- string)(nil))
440 testType(t, 12, typ, "chan<- string")
877 struct{ x chan int }{},
902 x chan int
905 ci.x = make(chan int)
1037 var c chan int
1043 c = make(chan int, 1)
1047 c = cv.Interface().(chan int)
1065 t.Errorf("TryRecv on empty chan: %s, %t", valueToString(val), ok)
1072 t.Errorf("TryRecv on ready chan got nil")
1082 t.Errorf("TrySend on full chan succeeded: value %d", i)
1088 t.Errorf("TrySend on empty chan failed")
1112 var c chan int
1114 c = cv.Interface().(chan int)
1116 t.Errorf("TrySend on sync chan succeeded")
1119 t.Errorf("TryRecv on sync chan succeeded: isvalid=%v ok=%v", v.IsValid(), ok)
1124 c = cv.Interface().(chan int)
1153 c := make(chan int, cap)
1157 c := make(chan string, cap)
1182 Chan: ch,
1194 Chan: ch,
1204 Chan: ch,
1221 Chan: ch,
1232 // Zero Chan send.
1243 info = append(info, caseInfo{desc: "zero Chan send"})
1246 // Zero Chan receive.
1251 info = append(info, caseInfo{desc: "zero Chan recv"})
1254 // nil Chan send.
1258 Chan: ValueOf((chan int)(nil)),
1261 info = append(info, caseInfo{desc: "nil Chan send"})
1264 // nil Chan recv.
1268 Chan: ValueOf((chan int)(nil)),
1270 info = append(info, caseInfo{desc: "nil Chan recv"})
1273 // closed Chan send.
1275 ch := make(chan int)
1279 Chan: ValueOf(ch),
1282 info = append(info, caseInfo{desc: "closed Chan send", canSelect: true, panic: true})
1285 // closed Chan recv.
1292 Chan: ch,
1294 info = append(info, caseInfo{desc: "closed Chan recv", canSelect: true, closed: true, recv: val})
3498 {V((chan byte)(nil)), V((chan byte)(nil))},
3499 {V((chan MyByte)(nil)), V((chan MyByte)(nil))},
3514 {V((chan int)(nil)), V((<-chan int)(nil))},
3515 {V((chan int)(nil)), V((chan<- int)(nil))},
3516 {V((chan string)(nil)), V((<-chan string)(nil))},
3517 {V((chan string)(nil)), V((chan<- string)(nil))},
3518 {V((chan byte)(nil)), V((chan byte)(nil))},
3519 {V((chan MyByte)(nil)), V((chan MyByte)(nil))},
3635 {TypeOf(make(chan int)), true},
4632 t.Errorf("constructed chan: have %q, %q, want %q, %q", s1, s2, "hello", "world")
4637 checkSameType(t, Zero(ChanOf(BothDir, TypeOf(T1(1)))).Interface(), (chan T1)(nil))
4648 checkSameType(t, Zero(ChanOf(RecvDir, TypeOf(T1(1)))).Interface(), (<-chan T1)(nil))
4649 checkSameType(t, Zero(ChanOf(SendDir, TypeOf(T1(1)))).Interface(), (chan<- T1)(nil))
4652 if crt.ChanDir().String() != "<-chan" {
4653 t.Errorf("chan dir: have %q, want %q", crt.ChanDir().String(), "<-chan")
4655 if cst.ChanDir().String() != "chan<-" {
4656 t.Errorf("chan dir: have %q, want %q", cst.ChanDir().String(), "chan<-")
4661 done := make(chan bool, 1)
4680 // use the gc info in the newly constructed chan type.
5700 verifyGCBits(t, TypeOf((chan [100]Xscalar)(nil)), lit(1))
5816 // Note: for a chan int, the return Value must be allocated, so we
5817 // use a chan *int instead.
5818 c := ValueOf(make(chan *int, 1))
5825 t.Errorf("allocs per chan send/recv: want 1 got %f", allocs)
5843 {(*chan D1)(nil), ""},
5845 {(*<-chan D1)(nil), ""},
5846 {(*chan<- D1)(nil), ""},
5924 {ChanOf(3, TypeOf(XM{})), "chan reflect_test.XM"},