Home | History | Annotate | Download | only in test

Lines Matching refs:panic

25 	runtime.Breakpoint()	// can't depend on panic
33 die() // panic is useless here
61 // Easy nested recursive panic.
65 panic(2)
67 panic(1)
71 // Sequential panic.
80 panic(3)
82 panic(2)
86 // Sequential panic - like test2 but less picky.
91 panic(3)
93 panic(2)
97 // Single panic.
102 panic(4)
106 // Single panic but recover called via defer
111 panic(5)
115 // Sequential panic.
119 defer recover() // like a normal call from this func; runs because mustRecover stops the panic
121 panic(3)
123 panic(2)
129 // because it runs called from panic, not from the func,
130 // and therefore cannot see the panic of 2.
131 // (Alternately, it cannot see the panic of 2 because
132 // there is an active panic of 3. And it cannot see the
133 // panic of 3 because it is at the wrong level (too high on the stack).)
138 panic(3)
140 panic(2)