From f199c7ace89a1ebf659c4f5a00ae098263668b22 Mon Sep 17 00:00:00 2001 From: Softonik Date: Mon, 9 Jun 2025 14:02:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=81=D0=BB=D0=B8=20=D1=81=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=20=D1=83=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=20=D0=BD=D0=B0=20helpers.go=20-=20=D1=82=D0=BE=20=D1=81=D0=BC?= =?UTF-8?q?=D0=BE=D1=82=D1=80=D0=B8=D0=BC=20=D0=B2=D1=8B=D1=88=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- godog_and_gomega.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/godog_and_gomega.go b/godog_and_gomega.go index b21e225..f4fad92 100644 --- a/godog_and_gomega.go +++ b/godog_and_gomega.go @@ -44,6 +44,9 @@ func getTestAssertPlace() string { } func getTestAssertFullPathPlace() string { _, file, line, _ := runtime.Caller(CALL_STACK_DEPTH_TO_TEST_FILE) + if strings.HasSuffix(file, "godog_and_gomega/helpers.go") { + _, file, line, _ = runtime.Caller(CALL_STACK_DEPTH_TO_TEST_FILE + 1) + } return fmt.Sprintf("%v:%v", file, line) } func getProjectRootRelativeTestAssertPlace(place string) string {