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

Method TestOne

suite/suite_test.go:221–226  ·  view source on GitHub ↗

Every method in a testing suite that begins with "Test" will be run as a test. TestOne is an example of a test. For the purposes of this example, we've included assertions in the tests, since most tests will issue assertions.

()

Source from the content-addressed store, hash-verified

219// this example, we've included assertions in the tests, since most
220// tests will issue assertions.
221func (suite *SuiteTester) TestOne() {
222 beforeCount := suite.TestOneRunCount
223 suite.TestOneRunCount++
224 assert.Equal(suite.T(), suite.TestOneRunCount, beforeCount+1)
225 suite.Equal(suite.TestOneRunCount, beforeCount+1)
226}
227
228// TestTwo is another example of a test.
229func (suite *SuiteTester) TestTwo() {

Callers

nothing calls this directly

Calls 3

EqualFunction · 0.92
TMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected