Home | History | Annotate | Download | only in fixedbugs

Lines Matching refs:panic

8 // ensure that panic(x) where x is a numeric type displays a readable number
33 panic(%s(%s))
49 }{{"", "nil", "panic: nil"},
50 {"errors.New", `"test"`, "panic: test"},
51 {"S", "S{}", "panic: s-stringer"},
52 {"byte", "8", "panic: 8"},
53 {"rune", "8", "panic: 8"},
54 {"int", "8", "panic: 8"},
55 {"int8", "8", "panic: 8"},
56 {"int16", "8", "panic: 8"},
57 {"int32", "8", "panic: 8"},
58 {"int64", "8", "panic: 8"},
59 {"uint", "8", "panic: 8"},
60 {"uint8", "8", "panic: 8"},
61 {"uint16", "8", "panic: 8"},
62 {"uint32", "8", "panic: 8"},
63 {"uint64", "8", "panic: 8"},
64 {"uintptr", "8", "panic: 8"},
65 {"bool", "true", "panic: true"},
66 {"complex64", "8 + 16i", "panic: (+8.000000e+000+1.600000e+001i)"},
67 {"complex128", "8+16i", "panic: (+8.000000e+000+1.600000e+001i)"},
68 {"string", `"test"`, "panic: test"}} {
83 cmd.Run() // ignore err as we expect a panic
86 panicIdx := bytes.Index(out, []byte("panic: "))
88 log.Fatalf("expected a panic in output for %s, got: %s", tc.Type, out)
92 log.Fatalf("expected a newline in output for %s after the panic, got: %s", tc.Type, out)
96 log.Fatalf("expected '%s' for panic(%s(%s)), got %s", tc.Expect, tc.Type, tc.Input, out)