]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/testing/slogtest/slogtest.go
testing: add available godoc link
[gostls13.git] / src / testing / slogtest / slogtest.go
index 6f08180df59f4238cbc5c8b467dd9b703ff55c67..5c3aced65b62a602ebfe2b3861db7777748ae3b4 100644 (file)
@@ -231,7 +231,7 @@ var cases = []testCase{
 
 // TestHandler tests a [slog.Handler].
 // If TestHandler finds any misbehaviors, it returns an error for each,
-// combined into a single error with errors.Join.
+// combined into a single error with [errors.Join].
 //
 // TestHandler installs the given Handler in a [slog.Logger] and
 // makes several calls to the Logger's output methods.
@@ -241,7 +241,7 @@ var cases = []testCase{
 // It should return a slice of map[string]any, one for each call to a Logger output method.
 // The keys and values of the map should correspond to the keys and values of the Handler's
 // output. Each group in the output should be represented as its own nested map[string]any.
-// The standard keys slog.TimeKey, slog.LevelKey and slog.MessageKey should be used.
+// The standard keys [slog.TimeKey], [slog.LevelKey] and [slog.MessageKey] should be used.
 //
 // If the Handler outputs JSON, then calling [encoding/json.Unmarshal] with a `map[string]any`
 // will create the right data structure.