]> Cypherpunks.ru repositories - gostls13.git/commit
testing/slogtest: tests for slog handlers
authorJonathan Amsterdam <jba@google.com>
Sun, 23 Apr 2023 15:23:53 +0000 (11:23 -0400)
committerJonathan Amsterdam <jba@google.com>
Mon, 24 Apr 2023 18:07:26 +0000 (18:07 +0000)
commitc80cedec9378b0a1cd5cb400e179bb25e2e7f810
treefd0da6d5813983dd701d6b1a359d61718548e811
parentddd822e5ca0e686ae64d921bcfe28119c34278fb
testing/slogtest: tests for slog handlers

Add a package for testing that a slog.Handler implementation
satisfies that interface's documented requirements.

Code copied from x/exp/slog/slogtest.

Updates #56345.

Change-Id: I89e94d93bfbe58e3c524758f7ac3c3fba2a2ea96
Reviewed-on: https://go-review.googlesource.com/c/go/+/487895
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
api/next/56345.txt
src/go/build/deps_test.go
src/testing/slogtest/example_test.go [new file with mode: 0644]
src/testing/slogtest/slogtest.go [new file with mode: 0644]