From 635bf2100c4efeae179b6a5ea0028424e985cc0a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 27 Sep 2024 15:10:50 -0300 Subject: src/gobang.go: Turn private sourceInfoSkip const into public SourceInfoSkip variable --- tests/gobang.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/gobang.go') diff --git a/tests/gobang.go b/tests/gobang.go index 7a88f28..518748e 100644 --- a/tests/gobang.go +++ b/tests/gobang.go @@ -640,6 +640,9 @@ func test_SetLoggerOutput() { savedLogger := slog.Default() Testing("the output JSON has data under \"src\"", func() { + saved := SourceInfoSkip + SourceInfoSkip = 3 + s := new(strings.Builder) SetLoggerOutput(s) Info("", "") @@ -670,6 +673,7 @@ func test_SetLoggerOutput() { AssertEqual(ok, true) _, ok = lineRaw.(float64) AssertEqual(ok, true) + SourceInfoSkip = saved }) Testing("the output JSON has data under \"info\"", func() { -- cgit v1.2.3