File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ Error types: (1) *errbase.errorFormatter (2) *errors.errorString`
66
66
f2 := & fmter {}
67
67
tt .CheckEqual (string (redact .Sprintf ("%v" , f2 )), sm + `hello` + em )
68
68
tt .CheckEqual (string (redact .Sprintf ("%+v" , f2 )), sm + `hello` + em )
69
+
70
+ // Another regression test.
71
+ // https://github.com/cockroachdb/redact/issues/12
72
+ var buf redact.StringBuilder
73
+ buf .Printf ("safe %v" , "unsafe" )
74
+ e := errutil .Newf ("%v" , buf )
75
+ tt .CheckEqual (string (redact .Sprint (e )), `safe ` + sm + `unsafe` + em )
69
76
}
70
77
71
78
type fmtWrap struct {
Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/cockroachdb/datadriven v1.0.0
7
7
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f
8
- github.com/cockroachdb/redact v1.0.6
8
+ github.com/cockroachdb/redact v1.0.8
9
9
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2
10
10
github.com/gogo/protobuf v1.3.1
11
11
github.com/gogo/status v1.1.0
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlN
17
17
github.com/cockroachdb/errors v1.6.1 /go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM =
18
18
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f h1:o/kfcElHqOiXqcou5a3rIlMc7oJbMQkeLk0VQJ7zgqY =
19
19
github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f /go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI =
20
- github.com/cockroachdb/redact v1.0.6 h1:W34uRRyNR4dlZFd0MibhNELsZSgMkl52uRV/tA1xToY =
21
- github.com/cockroachdb/redact v1.0.6 /go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg =
20
+ github.com/cockroachdb/redact v1.0.8 h1:8QG/764wK+vmEYoOlfobpe12EQcS81ukx/a4hdVMxNw =
21
+ github.com/cockroachdb/redact v1.0.8 /go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg =
22
22
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 h1:IKgmqgMQlVJIZj19CdocBeSfSaiCbEBZGKODaixqtHM =
23
23
github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 /go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ =
24
24
github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0 /go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM =
You can’t perform that action at this time.
0 commit comments