Home | History | Annotate | Download | only in test

Lines Matching refs:panic

71 	runtime.Breakpoint() // can't depend on panic
83 die() // panic is useless here
132 defer mustRecover(1) // because of panic below
135 panic(1)
166 panic(1)
170 // Recover only sees the panic argument
172 // It does not see the panic when called from a call within a deferred call (too late)
173 // nor does it see the panic when it *is* the deferred call (too early).
176 panic(2)
184 panic(3)
193 panic(4)
222 v := try(func() { panic(5) }, 55).(int)
234 v = try1(func() { panic(5) }, 55).(int)
274 panic(6)
298 panic("6WithClosures")
304 // should panic, then call mustRecover 7, which stops the panic.
310 panic(7)
330 panic(0)
359 panic(9)
365 panic(9)
371 panic(9)
384 panic(10)
390 panic(10)
396 panic(10)
409 panic(11)
415 panic(11)
421 panic(11)
435 panic(111)
441 panic(112)
449 // is a problem because sometimes functions exit via panic instead
450 // of an ordinary return, so panic would have to know to do the
453 // panic never did the right unwinding math.
455 // The new scheme adjusts Panic.argp on entry to a wrapper.
456 // It has no exit work, so if a wrapper is interrupted by a panic,
457 // there's no cleanup that panic itself must do.
477 panic(12)
483 panic(12)
489 panic(12)
502 panic(13)
508 panic(13)
514 panic(13)
519 // recover must look back two frames to find the panic.
537 panic(14)
543 panic(14)
549 panic(14)
562 panic(15)
586 panic(16)