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

Method T

suite/suite.go:35–39  ·  view source on GitHub ↗

T retrieves the current *testing.T context.

()

Source from the content-addressed store, hash-verified

33
34// T retrieves the current *testing.T context.
35func (suite *Suite) T() *testing.T {
36 suite.mu.RLock()
37 defer suite.mu.RUnlock()
38 return suite.t
39}
40
41// SetT sets the current *testing.T context.
42func (suite *Suite) SetT(t *testing.T) {

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected