| 1 | // Tests for the behavior of the test fixture system. |
| 2 | |
| 3 | package check_testscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/ |
| 4 | |
| 5 | import ( |
| 6 | . "github.com/pingcap/checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/" |
| 7 | ) |
| 8 | |
| 9 | // ----------------------------------------------------------------------- |
| 10 | // Fixture test suite. |
| 11 | |
| 12 | type FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS# struct{} |
| 13 | |
| 14 | var fixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/fixtureS. = Suitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Suite().(&FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#{}) |
| 15 | |
| 16 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestCountSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestCountSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 17 | suitesRunscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/suitesRun. += 1 |
| 18 | } |
| 19 | |
| 20 | // ----------------------------------------------------------------------- |
| 21 | // Basic fixture ordering verification. |
| 22 | |
| 23 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestOrderscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestOrder().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 24 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{} |
| 25 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, nil) |
| 26 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 27 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 28 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test1") |
| 29 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 30 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 31 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 32 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[6], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 33 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[7], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 34 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 8) |
| 35 | } |
| 36 | |
| 37 | // ----------------------------------------------------------------------- |
| 38 | // Check the behavior when panics occur within tests and fixtures. |
| 39 | |
| 40 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 41 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{panicOnscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#panicOn.: "Test1"} |
| 42 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 43 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 44 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 45 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 46 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test1") |
| 47 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 48 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 49 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 50 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[6], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 51 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[7], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 52 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 8) |
| 53 | |
| 54 | expected := "^\n-+\n" + |
| 55 | "PANIC: check_test\\.go:[0-9]+: FixtureHelper.Test1\n\n" + |
| 56 | "\\.\\.\\. Panic: Test1 \\(PC=[xA-F0-9]+\\)\n\n" + |
| 57 | ".+:[0-9]+\n" + |
| 58 | " in (go)?panic\n" + |
| 59 | ".*check_test.go:[0-9]+\n" + |
| 60 | " in FixtureHelper.trace\n" + |
| 61 | ".*check_test.go:[0-9]+\n" + |
| 62 | " in FixtureHelper.Test1\n" + |
| 63 | "(.|\n)*$" |
| 64 | |
| 65 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 66 | } |
| 67 | |
| 68 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnSetUpTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnSetUpTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 69 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{panicOnscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#panicOn.: "SetUpTest"} |
| 70 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 71 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 72 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 73 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 74 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 75 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 76 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 4) |
| 77 | |
| 78 | expected := "^\n-+\n" + |
| 79 | "PANIC: check_test\\.go:[0-9]+: " + |
| 80 | "FixtureHelper\\.SetUpTest\n\n" + |
| 81 | "\\.\\.\\. Panic: SetUpTest \\(PC=[xA-F0-9]+\\)\n\n" + |
| 82 | ".+:[0-9]+\n" + |
| 83 | " in (go)?panic\n" + |
| 84 | ".*check_test.go:[0-9]+\n" + |
| 85 | " in FixtureHelper.trace\n" + |
| 86 | ".*check_test.go:[0-9]+\n" + |
| 87 | " in FixtureHelper.SetUpTest\n" + |
| 88 | "(.|\n)*" + |
| 89 | "\n-+\n" + |
| 90 | "PANIC: check_test\\.go:[0-9]+: " + |
| 91 | "FixtureHelper\\.Test1\n\n" + |
| 92 | "\\.\\.\\. Panic: Fixture has panicked " + |
| 93 | "\\(see related PANIC\\)\n$" |
| 94 | |
| 95 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 96 | } |
| 97 | |
| 98 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnTearDownTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnTearDownTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 99 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{panicOnscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#panicOn.: "TearDownTest"} |
| 100 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 101 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 102 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 103 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 104 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test1") |
| 105 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 106 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 107 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 5) |
| 108 | |
| 109 | expected := "^\n-+\n" + |
| 110 | "PANIC: check_test\\.go:[0-9]+: " + |
| 111 | "FixtureHelper.TearDownTest\n\n" + |
| 112 | "\\.\\.\\. Panic: TearDownTest \\(PC=[xA-F0-9]+\\)\n\n" + |
| 113 | ".+:[0-9]+\n" + |
| 114 | " in (go)?panic\n" + |
| 115 | ".*check_test.go:[0-9]+\n" + |
| 116 | " in FixtureHelper.trace\n" + |
| 117 | ".*check_test.go:[0-9]+\n" + |
| 118 | " in FixtureHelper.TearDownTest\n" + |
| 119 | "(.|\n)*" + |
| 120 | "\n-+\n" + |
| 121 | "PANIC: check_test\\.go:[0-9]+: " + |
| 122 | "FixtureHelper\\.Test1\n\n" + |
| 123 | "\\.\\.\\. Panic: Fixture has panicked " + |
| 124 | "\\(see related PANIC\\)\n$" |
| 125 | |
| 126 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 127 | } |
| 128 | |
| 129 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnSetUpSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnSetUpSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 130 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{panicOnscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#panicOn.: "SetUpSuite"} |
| 131 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 132 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 133 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 134 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 135 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 2) |
| 136 | |
| 137 | expected := "^\n-+\n" + |
| 138 | "PANIC: check_test\\.go:[0-9]+: " + |
| 139 | "FixtureHelper.SetUpSuite\n\n" + |
| 140 | "\\.\\.\\. Panic: SetUpSuite \\(PC=[xA-F0-9]+\\)\n\n" + |
| 141 | ".+:[0-9]+\n" + |
| 142 | " in (go)?panic\n" + |
| 143 | ".*check_test.go:[0-9]+\n" + |
| 144 | " in FixtureHelper.trace\n" + |
| 145 | ".*check_test.go:[0-9]+\n" + |
| 146 | " in FixtureHelper.SetUpSuite\n" + |
| 147 | "(.|\n)*$" |
| 148 | |
| 149 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 150 | } |
| 151 | |
| 152 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnTearDownSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnTearDownSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 153 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{panicOnscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#panicOn.: "TearDownSuite"} |
| 154 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 155 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 156 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 157 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 158 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test1") |
| 159 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 160 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 161 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 162 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[6], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 163 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[7], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 164 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 8) |
| 165 | |
| 166 | expected := "^\n-+\n" + |
| 167 | "PANIC: check_test\\.go:[0-9]+: " + |
| 168 | "FixtureHelper.TearDownSuite\n\n" + |
| 169 | "\\.\\.\\. Panic: TearDownSuite \\(PC=[xA-F0-9]+\\)\n\n" + |
| 170 | ".+:[0-9]+\n" + |
| 171 | " in (go)?panic\n" + |
| 172 | ".*check_test.go:[0-9]+\n" + |
| 173 | " in FixtureHelper.trace\n" + |
| 174 | ".*check_test.go:[0-9]+\n" + |
| 175 | " in FixtureHelper.TearDownSuite\n" + |
| 176 | "(.|\n)*$" |
| 177 | |
| 178 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 179 | } |
| 180 | |
| 181 | // ----------------------------------------------------------------------- |
| 182 | // A wrong argument on a test or fixture will produce a nice error. |
| 183 | |
| 184 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongTestArgscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongTestArg().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 185 | helper := WrongTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgHelper#{} |
| 186 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 187 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 188 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 189 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 190 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 191 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 192 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 193 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 194 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[6], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 195 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 7) |
| 196 | |
| 197 | expected := "^\n-+\n" + |
| 198 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 199 | "WrongTestArgHelper\\.Test1\n\n" + |
| 200 | "\\.\\.\\. Panic: WrongTestArgHelper\\.Test1 argument " + |
| 201 | "should be \\*check\\.C\n" |
| 202 | |
| 203 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 204 | } |
| 205 | |
| 206 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongSetUpTestArgscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongSetUpTestArg().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 207 | helper := WrongSetUpTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgHelper#{} |
| 208 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 209 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 210 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 0) |
| 211 | |
| 212 | expected := |
| 213 | "^\n-+\n" + |
| 214 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 215 | "WrongSetUpTestArgHelper\\.SetUpTest\n\n" + |
| 216 | "\\.\\.\\. Panic: WrongSetUpTestArgHelper\\.SetUpTest argument " + |
| 217 | "should be \\*check\\.C\n" |
| 218 | |
| 219 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 220 | } |
| 221 | |
| 222 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongSetUpSuiteArgscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongSetUpSuiteArg().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 223 | helper := WrongSetUpSuiteArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgHelper#{} |
| 224 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 225 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 226 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 0) |
| 227 | |
| 228 | expected := |
| 229 | "^\n-+\n" + |
| 230 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 231 | "WrongSetUpSuiteArgHelper\\.SetUpSuite\n\n" + |
| 232 | "\\.\\.\\. Panic: WrongSetUpSuiteArgHelper\\.SetUpSuite argument " + |
| 233 | "should be \\*check\\.C\n" |
| 234 | |
| 235 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 236 | } |
| 237 | |
| 238 | // ----------------------------------------------------------------------- |
| 239 | // Nice errors also when tests or fixture have wrong arg count. |
| 240 | |
| 241 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongTestArgCountscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongTestArgCount().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 242 | helper := WrongTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgCountHelper#{} |
| 243 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 244 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 245 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 246 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 247 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 248 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 249 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 250 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 251 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[6], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 252 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 7) |
| 253 | |
| 254 | expected := "^\n-+\n" + |
| 255 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 256 | "WrongTestArgCountHelper\\.Test1\n\n" + |
| 257 | "\\.\\.\\. Panic: WrongTestArgCountHelper\\.Test1 argument " + |
| 258 | "should be \\*check\\.C\n" |
| 259 | |
| 260 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 261 | } |
| 262 | |
| 263 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongSetUpTestArgCountscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongSetUpTestArgCount().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 264 | helper := WrongSetUpTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgCountHelper#{} |
| 265 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 266 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 267 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 0) |
| 268 | |
| 269 | expected := |
| 270 | "^\n-+\n" + |
| 271 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 272 | "WrongSetUpTestArgCountHelper\\.SetUpTest\n\n" + |
| 273 | "\\.\\.\\. Panic: WrongSetUpTestArgCountHelper\\.SetUpTest argument " + |
| 274 | "should be \\*check\\.C\n" |
| 275 | |
| 276 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 277 | } |
| 278 | |
| 279 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestPanicOnWrongSetUpSuiteArgCountscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestPanicOnWrongSetUpSuiteArgCount().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 280 | helper := WrongSetUpSuiteArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgCountHelper#{} |
| 281 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 282 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 283 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 0) |
| 284 | |
| 285 | expected := |
| 286 | "^\n-+\n" + |
| 287 | "PANIC: fixture_test\\.go:[0-9]+: " + |
| 288 | "WrongSetUpSuiteArgCountHelper\\.SetUpSuite\n\n" + |
| 289 | "\\.\\.\\. Panic: WrongSetUpSuiteArgCountHelper" + |
| 290 | "\\.SetUpSuite argument should be \\*check\\.C\n" |
| 291 | |
| 292 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., expected) |
| 293 | } |
| 294 | |
| 295 | // ----------------------------------------------------------------------- |
| 296 | // Helper test suites with wrong function arguments. |
| 297 | |
| 298 | type WrongTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgHelper# struct { |
| 299 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgHelper#FixtureHelper. |
| 300 | } |
| 301 | |
| 302 | func (s *WrongTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgHelper#) Test1scip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgHelper#Test1().(t int) { |
| 303 | } |
| 304 | |
| 305 | type WrongSetUpTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgHelper# struct { |
| 306 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgHelper#FixtureHelper. |
| 307 | } |
| 308 | |
| 309 | func (s *WrongSetUpTestArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgHelper#) SetUpTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgHelper#SetUpTest().(t int) { |
| 310 | } |
| 311 | |
| 312 | type WrongSetUpSuiteArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgHelper# struct { |
| 313 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgHelper#FixtureHelper. |
| 314 | } |
| 315 | |
| 316 | func (s *WrongSetUpSuiteArgHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgHelper#) SetUpSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgHelper#SetUpSuite().(t int) { |
| 317 | } |
| 318 | |
| 319 | type WrongTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgCountHelper# struct { |
| 320 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgCountHelper#FixtureHelper. |
| 321 | } |
| 322 | |
| 323 | func (s *WrongTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgCountHelper#) Test1scip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongTestArgCountHelper#Test1().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#, i int) { |
| 324 | } |
| 325 | |
| 326 | type WrongSetUpTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgCountHelper# struct { |
| 327 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgCountHelper#FixtureHelper. |
| 328 | } |
| 329 | |
| 330 | func (s *WrongSetUpTestArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgCountHelper#) SetUpTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpTestArgCountHelper#SetUpTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#, i int) { |
| 331 | } |
| 332 | |
| 333 | type WrongSetUpSuiteArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgCountHelper# struct { |
| 334 | FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgCountHelper#FixtureHelper. |
| 335 | } |
| 336 | |
| 337 | func (s *WrongSetUpSuiteArgCountHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgCountHelper#) SetUpSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/WrongSetUpSuiteArgCountHelper#SetUpSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#, i int) { |
| 338 | } |
| 339 | |
| 340 | // ----------------------------------------------------------------------- |
| 341 | // Ensure fixture doesn't run without tests. |
| 342 | |
| 343 | type NoTestsHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper# struct { |
| 344 | hasRunscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#hasRun. bool |
| 345 | } |
| 346 | |
| 347 | func (s *NoTestsHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#) SetUpSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#SetUpSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 348 | s.hasRunscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#hasRun. = true |
| 349 | } |
| 350 | |
| 351 | func (s *NoTestsHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#) TearDownSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#TearDownSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 352 | s.hasRunscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#hasRun. = true |
| 353 | } |
| 354 | |
| 355 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestFixtureDoesntRunWithoutTestsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestFixtureDoesntRunWithoutTests().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 356 | helper := NoTestsHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#{} |
| 357 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 358 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 359 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(helper.hasRunscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/NoTestsHelper#hasRun., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., false) |
| 360 | } |
| 361 | |
| 362 | // ----------------------------------------------------------------------- |
| 363 | // Verify that checks and assertions work correctly inside the fixture. |
| 364 | |
| 365 | type FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper# struct { |
| 366 | failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#fail. string |
| 367 | completedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#completed. bool |
| 368 | } |
| 369 | |
| 370 | func (s *FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#) SetUpSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#SetUpSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 371 | switch s.failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#fail. { |
| 372 | case "SetUpSuiteAssert": |
| 373 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(false, Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., true) |
| 374 | case "SetUpSuiteCheck": |
| 375 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(false, Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., true) |
| 376 | } |
| 377 | s.completedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#completed. = true |
| 378 | } |
| 379 | |
| 380 | func (s *FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#) SetUpTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#SetUpTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 381 | switch s.failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#fail. { |
| 382 | case "SetUpTestAssert": |
| 383 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(false, Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., true) |
| 384 | case "SetUpTestCheck": |
| 385 | c.Checkscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Check().(false, Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., true) |
| 386 | } |
| 387 | s.completedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#completed. = true |
| 388 | } |
| 389 | |
| 390 | func (s *FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#) Testscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#Test().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 391 | // Do nothing. |
| 392 | } |
| 393 | |
| 394 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestSetUpSuiteCheckscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestSetUpSuiteCheck().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 395 | helper := FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#{failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#fail.: "SetUpSuiteCheck"} |
| 396 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 397 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 398 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., |
| 399 | "\n---+\n"+ |
| 400 | "FAIL: fixture_test\\.go:[0-9]+: "+ |
| 401 | "FixtureCheckHelper\\.SetUpSuite\n\n"+ |
| 402 | "fixture_test\\.go:[0-9]+:\n"+ |
| 403 | " c\\.Check\\(false, Equals, true\\)\n"+ |
| 404 | "\\.+ obtained bool = false\n"+ |
| 405 | "\\.+ expected bool = true\n\n") |
| 406 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.completedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#completed., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., true) |
| 407 | } |
| 408 | |
| 409 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestSetUpSuiteAssertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestSetUpSuiteAssert().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 410 | helper := FixtureCheckHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#{failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#fail.: "SetUpSuiteAssert"} |
| 411 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 412 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 413 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., |
| 414 | "\n---+\n"+ |
| 415 | "FAIL: fixture_test\\.go:[0-9]+: "+ |
| 416 | "FixtureCheckHelper\\.SetUpSuite\n\n"+ |
| 417 | "fixture_test\\.go:[0-9]+:\n"+ |
| 418 | " c\\.Assert\\(false, Equals, true\\)\n"+ |
| 419 | "\\.+ obtained bool = false\n"+ |
| 420 | "\\.+ expected bool = true\n\n") |
| 421 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.completedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureCheckHelper#completed., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., false) |
| 422 | } |
| 423 | |
| 424 | // ----------------------------------------------------------------------- |
| 425 | // Verify that logging within SetUpTest() persists within the test log itself. |
| 426 | |
| 427 | type FixtureLogHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper# struct { |
| 428 | cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#c. *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C# |
| 429 | } |
| 430 | |
| 431 | func (s *FixtureLogHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#) SetUpTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#SetUpTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 432 | s.cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#c. = c |
| 433 | c.Logscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Log().("1") |
| 434 | } |
| 435 | |
| 436 | func (s *FixtureLogHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#) Testscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#Test().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 437 | c.Logscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Log().("2") |
| 438 | s.cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#c..Logscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Log().("3") |
| 439 | c.Logscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Log().("4") |
| 440 | c.Failscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Fail().() |
| 441 | } |
| 442 | |
| 443 | func (s *FixtureLogHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#) TearDownTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#TearDownTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 444 | s.cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#c..Logscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Log().("5") |
| 445 | } |
| 446 | |
| 447 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestFixtureLoggingscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestFixtureLogging().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 448 | helper := FixtureLogHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureLogHelper#{} |
| 449 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 450 | Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 451 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Matchesscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Matches., |
| 452 | "\n---+\n"+ |
| 453 | "FAIL: fixture_test\\.go:[0-9]+: "+ |
| 454 | "FixtureLogHelper\\.Test\n\n"+ |
| 455 | "1\n2\n3\n4\n5\n") |
| 456 | } |
| 457 | |
| 458 | // ----------------------------------------------------------------------- |
| 459 | // Skip() within fixture methods. |
| 460 | |
| 461 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestSkipSuitescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestSkipSuite().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 462 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{skipscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#skip.: true, skipOnNscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#skipOnN.: 0} |
| 463 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 464 | result := Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 465 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(output.valuescip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#value., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "") |
| 466 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 467 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 468 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 2) |
| 469 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(result.Skippedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Result#Skipped., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 2) |
| 470 | } |
| 471 | |
| 472 | func (s *FixtureSscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#) TestSkipTestscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureS#TestSkipTest().(c *Cscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#) { |
| 473 | helper := FixtureHelperscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#{skipscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#skip.: true, skipOnNscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#skipOnN.: 1} |
| 474 | output := Stringscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/String#{} |
| 475 | result := Runscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Run().(&helper, &RunConfscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#{Outputscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/RunConf#Output.: &output}) |
| 476 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[0], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpSuite") |
| 477 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[1], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 478 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[2], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "SetUpTest") |
| 479 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[3], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "Test2") |
| 480 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[4], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownTest") |
| 481 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.[5], Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., "TearDownSuite") |
| 482 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(len(helper.callsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check_test`/FixtureHelper#calls.), Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 6) |
| 483 | c.Assertscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/C#Assert().(result.Skippedscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Result#Skipped., Equalsscip-go gomod github.com/pingcap/check . `github.com/pingcap/check`/Equals., 1) |
| 484 | } |