From c993c082a26391249a8af8936c97b0c7f0a1bc31 Mon Sep 17 00:00:00 2001 From: ikawaha Date: Sat, 3 Feb 2024 08:01:07 +0900 Subject: [PATCH] improve: Add a function that returns the TestingT held internally by Tester --- tester.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tester.go b/tester.go index 0cbce24..d11da0b 100644 --- a/tester.go +++ b/tester.go @@ -22,6 +22,11 @@ type Tester struct { *Checker } +// T returns the TestingT. +func (tt *Tester) T() TestingT { + return tt.t +} + // Check - Will make request to built request object. // After request is made, it will save response object for future assertions // Responsibility of this method is also to start and stop HTTP server