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

Function New

assert/forward_assertions.go:10–14  ·  view source on GitHub ↗

New makes a new Assertions object for the specified TestingT.

(t TestingT)

Source from the content-addressed store, hash-verified

8
9// New makes a new Assertions object for the specified TestingT.
10func New(t TestingT) *Assertions {
11 return &Assertions{
12 t: t,
13 }
14}
15
16//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"

Callers 15

SetTMethod · 0.92
TestImplementsWrapperFunction · 0.70
TestIsTypeWrapperFunction · 0.70
TestEqualWrapperFunction · 0.70
TestEqualValuesWrapperFunction · 0.70
TestNotNilWrapperFunction · 0.70
TestNilWrapperFunction · 0.70
TestTrueWrapperFunction · 0.70
TestFalseWrapperFunction · 0.70
TestExactlyWrapperFunction · 0.70
TestNotEqualWrapperFunction · 0.70

Calls

no outgoing calls

Tested by 15

TestImplementsWrapperFunction · 0.56
TestIsTypeWrapperFunction · 0.56
TestEqualWrapperFunction · 0.56
TestEqualValuesWrapperFunction · 0.56
TestNotNilWrapperFunction · 0.56
TestNilWrapperFunction · 0.56
TestTrueWrapperFunction · 0.56
TestFalseWrapperFunction · 0.56
TestExactlyWrapperFunction · 0.56
TestNotEqualWrapperFunction · 0.56
TestContainsWrapperFunction · 0.56