MCPcopy
hub / github.com/stretchr/testify / TestSubtestPanic

Method TestSubtestPanic

suite/suite_test.go:707–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

705}
706
707func (s *subtestPanicSuite) TestSubtestPanic() {
708 ok := s.Run("subtest", func() {
709 panic("panic")
710 })
711 s.False(ok, "subtest failure is expected")
712}
713
714func TestSubtestPanic(t *testing.T) {
715 suite := new(subtestPanicSuite)

Callers

nothing calls this directly

Calls 2

RunMethod · 0.45
FalseMethod · 0.45

Tested by

no test coverage detected