summaryrefslogtreecommitdiff
path: root/tests/gobang.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-27 15:10:50 -0300
committerEuAndreh <eu@euandre.org>2024-09-27 15:10:50 -0300
commit635bf2100c4efeae179b6a5ea0028424e985cc0a (patch)
tree480dbae2e0d84081bd194b31587972bd06436507 /tests/gobang.go
parentsrc/gobang.go: Remove `maxInt` and `MinimumPasswordLength` constants (diff)
downloadgobang-635bf2100c4efeae179b6a5ea0028424e985cc0a.tar.gz
gobang-635bf2100c4efeae179b6a5ea0028424e985cc0a.tar.xz
src/gobang.go: Turn private sourceInfoSkip const into public SourceInfoSkip variable
Diffstat (limited to 'tests/gobang.go')
-rw-r--r--tests/gobang.go4
1 files changed, 4 insertions, 0 deletions
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() {