Lines Matching defs:TestClientConn
71 type TestClientConn struct { struct
72 logger testingLogger
74 NewSubConnAddrsCh chan []resolver.Address // the last 10 []Address to create subconn.
75 NewSubConnCh chan balancer.SubConn // the last 10 subconn created.
76 RemoveSubConnCh chan balancer.SubConn // the last 10 subconn removed.
77 UpdateAddressesAddrsCh chan []resolver.Address // last updated address via UpdateAddresses().
79 NewPickerCh chan balancer.Picker // the last picker updated.
80 NewStateCh chan connectivity.State // the last state.
81 ResolveNowCh chan resolver.ResolveNowOptions // the last ResolveNow().
83 subConnIdx int
103 …entConn) NewSubConn(a []resolver.Address, o balancer.NewSubConnOptions) (balancer.SubConn, error) {
122 func (tcc *TestClientConn) RemoveSubConn(sc balancer.SubConn) {
131 func (tcc *TestClientConn) UpdateAddresses(sc balancer.SubConn, addrs []resolver.Address) {
140 func (tcc *TestClientConn) UpdateState(bs balancer.State) {
156 func (tcc *TestClientConn) ResolveNow(o resolver.ResolveNowOptions) {
165 func (tcc *TestClientConn) Target() string {
172 func (tcc *TestClientConn) WaitForErrPicker(ctx context.Context) error {