From 85143703909d41344a65ff88c9dc91468282be1e Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Tue, 18 Oct 2022 19:36:12 +0300 Subject: [PATCH] Fix PR comments (build tags, %q) --- server_unix_test.go => server_nowindows_test.go | 6 +++--- server_plan9.go | 3 --- server_windows_test.go | 5 +---- 3 files changed, 4 insertions(+), 10 deletions(-) rename server_unix_test.go => server_nowindows_test.go (93%) diff --git a/server_unix_test.go b/server_nowindows_test.go similarity index 93% rename from server_unix_test.go rename to server_nowindows_test.go index 924dc47..d38dbba 100644 --- a/server_unix_test.go +++ b/server_nowindows_test.go @@ -1,5 +1,5 @@ -//go:build !windows && !plan9 -// +build !windows,!plan9 +//go:build !windows +// +build !windows package sftp @@ -80,7 +80,7 @@ func TestServer_toLocalPath(t *testing.T) { } if got := s.toLocalPath(tt.p); got != tt.want { - t.Errorf("Server.toLocalPath() = %v, want %v", got, tt.want) + t.Errorf("Server.toLocalPath() = %q, want %q", got, tt.want) } }) } diff --git a/server_plan9.go b/server_plan9.go index da4c92e..4e8ed06 100644 --- a/server_plan9.go +++ b/server_plan9.go @@ -1,6 +1,3 @@ -//go:build plan9 -// +build plan9 - package sftp import ( diff --git a/server_windows_test.go b/server_windows_test.go index f6a68dc..ca9ed02 100644 --- a/server_windows_test.go +++ b/server_windows_test.go @@ -1,6 +1,3 @@ -//go:build windows -// +build windows - package sftp import ( @@ -80,7 +77,7 @@ func TestServer_toLocalPath(t *testing.T) { } if got := s.toLocalPath(tt.p); got != tt.want { - t.Errorf("Server.toLocalPath() = %v, want %v", got, tt.want) + t.Errorf("Server.toLocalPath() = %q, want %q", got, tt.want) } }) }