Home | History | Annotate | Download | only in test

Lines Matching refs:Recover

7 // Test of basic recover functionality.
19 // - some lesser bugs in recover()
77 println("spurious recover", v)
82 println("missing recover", x.(int))
93 println("recover didn't recover")
99 return recover()
103 mustRecoverBody(doubleRecover(), recover(), recover(), x)
107 v := recover()
109 println("spurious recover", v)
122 v := recover()
124 println("spurious recover (recursive)", v)
139 // Interesting because recover bases its decision
145 v := recover()
147 println("spurious recover in closure")
153 v := recover()
155 println("missing recover", x.(int))
170 // Recover only sees the panic argument
175 defer recover() // should be no-op
182 recover() // should squelch
191 defer recover() // should squelch
200 if v := recover(); v != nil {
212 if v := recover(); v != nil {
250 // confuse recover.
257 v := recover()
260 println("missing big recover")
265 println("spurious big recover")
283 if recover() != nil {
284 println("spurious big closure recover")
293 if recover() == nil {
294 println("missing big closure recover")
323 if recover() != nil {
353 mustRecoverBody(doubleRecover(), recover(), recover(), 9)
378 mustRecoverBody(doubleRecover(), recover(), recover(), 10)
403 mustRecoverBody(doubleRecover(), recover(), recover(), 11)
429 mustRecoverBody(doubleRecover(), recover(), recover(), 111)
446 // This is a torture test for an old implementation of recover that
461 recover()
471 mustRecoverBody(doubleRecover(), recover(), recover(), 12)
496 mustRecoverBody(doubleRecover(), recover(), recover(), 13)
519 // recover must look back two frames to find the panic.
531 mustRecoverBody(doubleRecover(), recover(), recover(), 14)
555 mustRecoverBody(doubleRecover(), recover(), recover(), 15)
572 if v := recover(); v != nil {
573 println("spurious recover", v)