mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
17 lines
239 B
Go
17 lines
239 B
Go
package testutil
|
|
|
|
import (
|
|
"testing"
|
|
|
|
. "src.elv.sh/pkg/tt"
|
|
)
|
|
|
|
func TestRecover(t *testing.T) {
|
|
Test(t, Fn("Recover", Recover), Table{
|
|
Args(func() {}).Rets(nil),
|
|
Args(func() {
|
|
panic("unreachable")
|
|
}).Rets("unreachable"),
|
|
})
|
|
}
|