diff options
| author | EuAndreh <eu@euandre.org> | 2024-09-25 22:52:52 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-09-25 22:52:52 -0300 |
| commit | 1a972bf725a7939129115289e1a6052a21fce9f5 (patch) | |
| tree | e5950e5ae08cd2bc5c5ae61b454ee616092e826f | |
| parent | src/gobang.go: Put sourceInfo skip level into private const (diff) | |
| download | gobang-1a972bf725a7939129115289e1a6052a21fce9f5.tar.gz gobang-1a972bf725a7939129115289e1a6052a21fce9f5.tar.xz | |
src/gobang.go: Increase sourceInfoSkip from 3 to 4
| -rw-r--r-- | src/gobang.go | 2 | ||||
| -rw-r--r-- | tests/gobang.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gobang.go b/src/gobang.go index f135aa3..f27cdea 100644 --- a/src/gobang.go +++ b/src/gobang.go @@ -122,7 +122,7 @@ func anyArr[S ~[]E, E any](arr S) []any { return ret } -const sourceInfoSkip = 3 +const sourceInfoSkip = 4 func Debug(message string, type_ string, args ...any) { if level < LevelDebug { return diff --git a/tests/gobang.go b/tests/gobang.go index 954f588..7a88f28 100644 --- a/tests/gobang.go +++ b/tests/gobang.go @@ -657,14 +657,14 @@ func test_SetLoggerOutput() { AssertEqual(ok, true) file, ok := fileRaw.(string) AssertEqual(ok, true) - const FILENAME = "tests/gobang.go" + const FILENAME = "g/src/gobang.go" AssertEqual(file[len(file) - len(FILENAME):], FILENAME) functionRaw, ok := src["function"] AssertEqual(ok, true) function, ok := functionRaw.(string) AssertEqual(ok, true) - AssertEqual(function, "gobang.test_SetLoggerOutput.func1") + AssertEqual(function, "gobang.Testing") lineRaw, ok := src["line"] AssertEqual(ok, true) |
