/* GinkgoT() implements an interface that allows third party libraries to integrate with and build on top of Ginkgo. GinkgoT() is analogous to *testing.T and implements the majority of *testing.T's methods. It can be typically be used a a drop-in replacement with third-party libraries that accept *testing.T through an interface. GinkgoT() takes an optional offset argument that can be used to get the correct line number associated with the failure - though you do not need to use this if you call GinkgoHelper() or GinkgoT().Helper() appropriately GinkgoT() attempts to mimic the behavior of `testing.T` with the exception of the following: - Error/Errorf: failures in Ginkgo always immediately stop execution and there is no mechanism to log a failure without aborting the test. As such Error/Errorf are equivalent to Fatal/Fatalf. - Parallel() is a no-op as Ginkgo's multi-process parallelism model is substantially different from go test's in-process model. You can learn more here: https://onsi.github.io/ginkgo/#using-third-party-libraries */ func GinkgoT(optionalOffset ...int) FullGinkgoTInterface { … } type GinkgoTInterface … type FullGinkgoTInterface … /* GinkgoTB() implements a wrapper that exactly matches the testing.TB interface. In go 1.18 a new private() function was added to the testing.TB interface. Any function which accepts testing.TB as input needs to be passed in something that directly implements testing.TB. This wrapper satisfies the testing.TB interface and intended to be used as a drop-in replacement with third party libraries that accept testing.TB. Similar to GinkgoT(), GinkgoTB() takes an optional offset argument that can be used to get the correct line number associated with the failure - though you do not need to use this if you call GinkgoHelper() or GinkgoT().Helper() appropriately */ func GinkgoTB(optionalOffset ...int) *GinkgoTBWrapper { … } type GinkgoTBWrapper … func (g *GinkgoTBWrapper) Cleanup(f func()) { … } func (g *GinkgoTBWrapper) Error(args ...any) { … } func (g *GinkgoTBWrapper) Errorf(format string, args ...any) { … } func (g *GinkgoTBWrapper) Fail() { … } func (g *GinkgoTBWrapper) FailNow() { … } func (g *GinkgoTBWrapper) Failed() bool { … } func (g *GinkgoTBWrapper) Fatal(args ...any) { … } func (g *GinkgoTBWrapper) Fatalf(format string, args ...any) { … } func (g *GinkgoTBWrapper) Helper() { … } func (g *GinkgoTBWrapper) Log(args ...any) { … } func (g *GinkgoTBWrapper) Logf(format string, args ...any) { … } func (g *GinkgoTBWrapper) Name() string { … } func (g *GinkgoTBWrapper) Setenv(key, value string) { … } func (g *GinkgoTBWrapper) Skip(args ...any) { … } func (g *GinkgoTBWrapper) SkipNow() { … } func (g *GinkgoTBWrapper) Skipf(format string, args ...any) { … } func (g *GinkgoTBWrapper) Skipped() bool { … } func (g *GinkgoTBWrapper) TempDir() string { … }