Lines Matching full:if
34 // Setup mock to fail at a certain position. Return true if position exists otherwise false.
37 // this function. If more function calls are added in the future, this
44 // always be called by t.Cleanup, even if we return false here.
49 if failAt > lastFailAt {
55 if failAt == 0 {
59 if failAt == 0 {
62 if failAt == 1 {
66 if failAt == 1 {
69 if failAt == 2 {
73 if failAt == 2 {
76 if failAt == 3 {
80 if failAt == 3 {
83 if failAt == 4 {
87 if failAt == 4 {
90 if failAt == 5 {
94 if failAt == 5 {
97 if failAt == 6 {
101 if failAt == 6 {
104 if failAt == 7 {
108 if failAt == 7 {
111 if failAt == 8 {
115 if failAt == 8 {
118 if failAt == 9 {
122 if failAt == 9 {
125 if failAt == 10 {
129 if failAt == 10 {
132 if failAt == 11 {
136 if failAt == 11 {
139 if failAt == 12 {
144 if failAt == 12 {
147 if failAt == 13 {
151 if failAt == 13 {
154 if failAt == 14 {
158 if failAt == 14 {
161 if failAt == 15 {
165 if failAt == 15 {
168 if failAt == 16 {
172 if failAt == 16 {
175 if failAt == 17 {
179 if failAt == 17 {
182 if failAt == 18 {
186 if failAt == 18 {
189 if failAt == 19 {
193 if failAt == 19 {
196 if failAt == 20 {
200 if failAt == 20 {
203 if failAt == 21 {
207 if failAt == 21 {
210 if failAt == 22 {
214 if failAt == 22 {
217 if failAt == 23 {
221 if failAt == 23 {
224 if failAt == 24 {
228 if failAt == 24 {
231 if failAt == 25 {
235 if failAt == 25 {
238 if failAt == 26 {
242 if failAt == 26 {
245 if failAt == 27 {
249 if failAt == 27 {
252 if failAt == 28 {
256 if failAt == 28 {
259 if failAt == 29 {
263 if failAt == 29 {
266 if failAt == 30 {
270 if failAt == 30 {
273 if failAt == 31 {
277 if failAt == 31 {
280 if failAt == 32 {
284 if failAt == 32 {
287 if failAt == 33 {
291 if failAt == 33 {
294 if failAt == 34 {
298 if failAt == 34 {
301 if failAt == 35 {
305 if failAt == 35 {
308 if failAt == 36 {
312 if failAt == 36 {
315 if failAt == 37 {
319 if failAt == 37 {
322 if failAt == 38 {
326 if failAt == 38 {
329 if failAt == 39 {
333 if failAt == 39 {
336 if failAt == 40 {
340 if failAt == 40 {
343 if failAt == 41 {
347 if failAt == 41 {
350 if failAt == 42 {
354 if failAt == 42 {
357 if failAt == 43 {
361 if failAt == 43 {
364 if failAt == 44 {
368 if failAt == 44 {
371 if failAt == 45 {
375 if failAt == 45 {
378 if failAt == 46 {
382 if failAt == 46 {
385 if failAt == 47 {
389 if failAt == 47 {
392 if failAt == 48 {
396 if failAt == 48 {
399 if failAt == 49 {
403 if failAt == 49 {
406 if failAt == 50 {
412 if failAt == 50 {
432 if !prepareClientCallReply(protocol, i, err) {
440 if !ok {
444 if err2.TypeId() != thrift.TIMED_OUT {
465 if !prepareClientCallReply(protocol, i, err) {
473 if !ok {
477 if err2.TypeId() != thrift.TIMED_OUT {
497 if !prepareClientCallReply(protocol, i, err) {
505 if !ok {
508 if err2.TypeId() != thrift.INVALID_DATA {
529 if !prepareClientCallReply(protocol, i, err) {
537 if !ok {
540 if err2.TypeId() != thrift.INVALID_DATA {
547 // Setup mock to fail at a certain position. Return true if position exists otherwise false.
563 if failAt == 0 {
567 if failAt == 0 {
570 if failAt == 1 {
574 if failAt == 1 {
577 if failAt == 2 {
581 if failAt == 2 {
584 if failAt == 3 {
588 if failAt == 3 {
591 if failAt == 4 {
595 if failAt == 4 {
598 if failAt == 5 {
602 if failAt == 5 {
605 if failAt == 6 {
609 if failAt == 6 {
612 if failAt == 7 {
616 if failAt == 7 {
619 if failAt == 8 {
623 if failAt == 8 {
626 if failAt == 9 {
630 if failAt == 9 {
633 if failAt == 10 {
639 if failAt == 10 {
660 if !willComplete {
662 if !ok {
665 if err2.TypeId() != thrift.TIMED_OUT {
670 if !ok {
673 if err2.TypeId() != thrift.PROTOCOL_ERROR {
696 if !willComplete {
698 if !ok {
701 if err2.TypeId() != thrift.TIMED_OUT {
706 if !ok {
709 if err2.TypeId() != thrift.PROTOCOL_ERROR {
738 if !ok {
741 if appErr.TypeId() != thrift.BAD_SEQUENCE_ID {
769 if !ok {
772 if appErr.TypeId() != thrift.BAD_SEQUENCE_ID {
798 if !ok {
801 if appErr.TypeId() != thrift.WRONG_METHOD_NAME {
829 if !ok {
832 if appErr.TypeId() != thrift.WRONG_METHOD_NAME {
858 if !ok {
861 if appErr.TypeId() != thrift.INVALID_MESSAGE_TYPE_EXCEPTION {
889 if !ok {
892 if appErr.TypeId() != thrift.INVALID_MESSAGE_TYPE_EXCEPTION {