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

Function TestSubtestPanic

suite/suite_test.go:714–729  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

712}
713
714func TestSubtestPanic(t *testing.T) {
715 suite := new(subtestPanicSuite)
716 ok := testing.RunTests(
717 allTestsFilter,
718 []testing.InternalTest{{
719 Name: t.Name() + "/subtestPanicSuite",
720 F: func(t *testing.T) {
721 Run(t, suite)
722 },
723 }},
724 )
725 assert.False(t, ok, "TestSubtestPanic/subtest should make the testsuite fail")
726 assert.True(t, suite.inTearDownSubTest)
727 assert.True(t, suite.inTearDownTest)
728 assert.True(t, suite.inTearDownSuite)
729}
730
731type unInitializedSuite struct {
732 Suite

Callers

nothing calls this directly

Calls 4

FalseFunction · 0.92
TrueFunction · 0.92
RunFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…