@@ -45,12 +45,12 @@ func TestGitConfig(t *testing.T) {
4545 t .Fatalf ("GitConfig(%q) error = %v, wantErr %v" , tt .key , err , tt .wantErr )
4646 }
4747 if len (got ) != len (tt .want ) {
48- t .Errorf ("GitConfig(%q) = %v, want %v" , tt .key , got , tt .want ) //nostyle:errorstrings
48+ t .Errorf ("GitConfig(%q) = %v, want %v" , tt .key , got , tt .want )
4949 return
5050 }
5151 for i := range got {
5252 if got [i ] != tt .want [i ] {
53- t .Errorf ("GitConfig(%q)[%d] = %q, want %q" , tt .key , i , got [i ], tt .want [i ]) //nostyle:errorstrings
53+ t .Errorf ("GitConfig(%q)[%d] = %q, want %q" , tt .key , i , got [i ], tt .want [i ])
5454 }
5555 }
5656 })
@@ -77,16 +77,16 @@ func TestLoadConfig(t *testing.T) {
7777 }
7878
7979 if cfg .BaseDir != "../custom-worktrees" {
80- t .Errorf ("LoadConfig().BaseDir = %q, want %q" , cfg .BaseDir , "../custom-worktrees" ) //nostyle:errorstrings
80+ t .Errorf ("LoadConfig().BaseDir = %q, want %q" , cfg .BaseDir , "../custom-worktrees" )
8181 }
8282 if ! cfg .CopyIgnored {
83- t .Errorf ("LoadConfig().CopyIgnored = %v, want true" , cfg .CopyIgnored ) //nostyle:errorstrings
83+ t .Errorf ("LoadConfig().CopyIgnored = %v, want true" , cfg .CopyIgnored )
8484 }
8585 if cfg .CopyUntracked {
86- t .Errorf ("LoadConfig().CopyUntracked = %v, want false" , cfg .CopyUntracked ) //nostyle:errorstrings
86+ t .Errorf ("LoadConfig().CopyUntracked = %v, want false" , cfg .CopyUntracked )
8787 }
8888 if ! cfg .CopyModified {
89- t .Errorf ("LoadConfig().CopyModified = %v, want true" , cfg .CopyModified ) //nostyle:errorstrings
89+ t .Errorf ("LoadConfig().CopyModified = %v, want true" , cfg .CopyModified )
9090 }
9191
9292 // Test with explicit default pattern
@@ -101,19 +101,19 @@ func TestLoadConfig(t *testing.T) {
101101 }
102102
103103 if cfg .BaseDir != "../{gitroot}-wt" {
104- t .Errorf ("LoadConfig().BaseDir = %q, want %q" , cfg .BaseDir , "../{gitroot}-wt" ) //nostyle:errorstrings
104+ t .Errorf ("LoadConfig().BaseDir = %q, want %q" , cfg .BaseDir , "../{gitroot}-wt" )
105105 }
106106 if cfg .CopyIgnored {
107- t .Errorf ("LoadConfig().CopyIgnored default = %v, want false" , cfg .CopyIgnored ) //nostyle:errorstrings
107+ t .Errorf ("LoadConfig().CopyIgnored default = %v, want false" , cfg .CopyIgnored )
108108 }
109109 if cfg .CopyUntracked {
110- t .Errorf ("LoadConfig().CopyUntracked default = %v, want false" , cfg .CopyUntracked ) //nostyle:errorstrings
110+ t .Errorf ("LoadConfig().CopyUntracked default = %v, want false" , cfg .CopyUntracked )
111111 }
112112 if cfg .CopyModified {
113- t .Errorf ("LoadConfig().CopyModified default = %v, want false" , cfg .CopyModified ) //nostyle:errorstrings
113+ t .Errorf ("LoadConfig().CopyModified default = %v, want false" , cfg .CopyModified )
114114 }
115115 if cfg .NoCd {
116- t .Errorf ("LoadConfig().NoCd default = %v, want false" , cfg .NoCd ) //nostyle:errorstrings
116+ t .Errorf ("LoadConfig().NoCd default = %v, want false" , cfg .NoCd )
117117 }
118118
119119 // Test NoCd setting
@@ -125,7 +125,7 @@ func TestLoadConfig(t *testing.T) {
125125 }
126126
127127 if ! cfg .NoCd {
128- t .Errorf ("LoadConfig().NoCd = %v, want true" , cfg .NoCd ) //nostyle:errorstrings
128+ t .Errorf ("LoadConfig().NoCd = %v, want true" , cfg .NoCd )
129129 }
130130}
131131
@@ -176,7 +176,7 @@ func TestExpandPath(t *testing.T) {
176176 t .Fatalf ("unexpected error: %v" , err )
177177 }
178178 if got != tt .want {
179- t .Errorf ("ExpandPath(%q) = %q, want %q" , tt .path , got , tt .want ) //nostyle:errorstrings
179+ t .Errorf ("ExpandPath(%q) = %q, want %q" , tt .path , got , tt .want )
180180 }
181181 })
182182 }
@@ -199,7 +199,7 @@ func TestWorktreePathFor(t *testing.T) {
199199 // Expected: parent_dir/repo-wt/feature-branch
200200 expectedDir := filepath .Clean (filepath .Join (repo .Root , "../repo-wt/feature-branch" ))
201201 if path != expectedDir {
202- t .Errorf ("WorktreePathFor(\" feature-branch\" ) = %q, want %q" , path , expectedDir ) //nostyle:errorstrings
202+ t .Errorf ("WorktreePathFor(\" feature-branch\" ) = %q, want %q" , path , expectedDir )
203203 }
204204
205205 // Test with custom basedir
@@ -210,7 +210,7 @@ func TestWorktreePathFor(t *testing.T) {
210210
211211 expectedDir = filepath .Clean (filepath .Join (repo .Root , "../repo-worktrees/feature-branch" ))
212212 if path != expectedDir {
213- t .Errorf ("WorktreePathFor(\" feature-branch\" ) with custom basedir = %q, want %q" , path , expectedDir ) //nostyle:errorstrings
213+ t .Errorf ("WorktreePathFor(\" feature-branch\" ) with custom basedir = %q, want %q" , path , expectedDir )
214214 }
215215}
216216
@@ -256,7 +256,7 @@ func TestExpandBaseDir(t *testing.T) {
256256 t .Fatalf ("unexpected error: %v" , err )
257257 }
258258 if got != tt .want {
259- t .Errorf ("ExpandBaseDir(%q) = %q, want %q" , tt .baseDir , got , tt .want ) //nostyle:errorstrings
259+ t .Errorf ("ExpandBaseDir(%q) = %q, want %q" , tt .baseDir , got , tt .want )
260260 }
261261 })
262262 }
@@ -316,6 +316,6 @@ func TestSetConfig(t *testing.T) {
316316 t .Fatalf ("GitConfig() error = %v" , err )
317317 }
318318 if len (values ) != 1 || values [0 ] != "../test-wt" {
319- t .Errorf ("GitConfig() = %v, want [../test-wt]" , values ) //nostyle:errorstrings
319+ t .Errorf ("GitConfig() = %v, want [../test-wt]" , values )
320320 }
321321}
0 commit comments