github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/cmd/gno/testdata/gno_test/panic.txtar (about) 1 # Test panic output in a test 2 3 ! gno test . 4 5 ! stdout .+ 6 stderr '--- FAIL: TestPanic' 7 stderr 'panic: hello world' 8 stderr 'FAIL' 9 10 -- panic.gno -- 11 package valid 12 13 -- panic_test.gno -- 14 package valid 15 16 import "testing" 17 18 func TestPanic(t *testing.T) { 19 panic("hello world") 20 }