mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
format using go-1.19
This commit is contained in:
parent
9ce1de4eee
commit
5ef5142bb0
11 changed files with 34 additions and 27 deletions
|
@ -1,6 +1,6 @@
|
|||
//Package for a safer logging wrapper around the standard logging package
|
||||
|
||||
//import "git.torproject.org/pluggable-transports/snowflake.git/v2/common/safelog"
|
||||
// import "git.torproject.org/pluggable-transports/snowflake.git/v2/common/safelog"
|
||||
package safelog
|
||||
|
||||
import (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
//Check to make sure that addresses split across calls to write are still scrubbed
|
||||
// Check to make sure that addresses split across calls to write are still scrubbed
|
||||
func TestLogScrubberSplit(t *testing.T) {
|
||||
input := []byte("test\nhttp2: panic serving [2620:101:f000:780:9097:75b1:519f:dbb8]:58344: interface conversion: *http2.responseWriter is not http.Hijacker: missing method Hijack\n")
|
||||
|
||||
|
@ -49,7 +49,7 @@ func TestLogScrubberSplit(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
//Test the log scrubber on known problematic log messages
|
||||
// Test the log scrubber on known problematic log messages
|
||||
func TestLogScrubberMessages(t *testing.T) {
|
||||
for _, test := range []struct {
|
||||
input, expected string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue