@@ -20,7 +20,7 @@ func TestUUIDCommand(t *testing.T) {
2020 // Should generate both UUID and key
2121 assertContains (t , output , "UUID:" )
2222 assertContains (t , output , "Key:" )
23-
23+
2424 // Extract UUID from output
2525 lines := strings .Split (output , "\n " )
2626 for _ , line := range lines {
@@ -142,11 +142,11 @@ func TestUUIDCommand(t *testing.T) {
142142 for _ , tt := range tests {
143143 t .Run (tt .name , func (t * testing.T ) {
144144 output , err := executeCommand (rootCmd , tt .args ... )
145-
145+
146146 if (err != nil ) != tt .wantErr {
147147 t .Errorf ("expected error: %v, got: %v (output: %s)" , tt .wantErr , err , output )
148148 }
149-
149+
150150 if tt .check != nil && err == nil {
151151 tt .check (t , output )
152152 }
@@ -158,25 +158,25 @@ func TestUUIDVersionGeneration(t *testing.T) {
158158 // Test that multiple generations produce different UUIDs
159159 t .Run ("unique generation" , func (t * testing.T ) {
160160 uuids := make (map [string ]bool )
161-
162- for i := 0 ; i < 10 ; i ++ {
161+
162+ for range 10 {
163163 output , err := executeCommand (rootCmd , "uuid" , "-q" )
164164 if err != nil {
165165 t .Fatalf ("unexpected error: %v" , err )
166166 }
167-
167+
168168 uuid := strings .TrimSpace (output )
169169 if uuids [uuid ] {
170170 t .Errorf ("duplicate UUID generated: %s" , uuid )
171171 }
172172 uuids [uuid ] = true
173173 }
174174 })
175-
175+
176176 // Test v6 is sortable
177177 t .Run ("v6 sortable" , func (t * testing.T ) {
178178 // Generate multiple v6 UUIDs
179- for i := 0 ; i < 5 ; i ++ {
179+ for range 5 {
180180 output , err := executeCommand (rootCmd , "uuid" , "--version" , "6" , "-q" )
181181 if err != nil {
182182 t .Fatalf ("unexpected error: %v" , err )
@@ -187,7 +187,7 @@ func TestUUIDVersionGeneration(t *testing.T) {
187187 t .Errorf ("expected v6 UUID, got %s" , uuid )
188188 }
189189 }
190- // Note: v6 UUIDs are sortable by time but might not always be strictly
190+ // Note: v6 UUIDs are sortable by time but might not always be strictly
191191 // increasing due to timing resolution and MAC address components
192192 })
193193}
@@ -253,11 +253,11 @@ func TestUUIDErrors(t *testing.T) {
253253 for _ , tt := range tests {
254254 t .Run (tt .name , func (t * testing.T ) {
255255 output , err := executeCommand (newRootCommand (), tt .args ... )
256-
256+
257257 if (err != nil ) != tt .wantErr {
258258 t .Errorf ("expected error: %v, got: %v" , tt .wantErr , err )
259259 }
260-
260+
261261 if tt .check != nil {
262262 tt .check (t , output )
263263 }
@@ -374,11 +374,11 @@ func TestUUIDGenerateErrors(t *testing.T) {
374374 for _ , tt := range tests {
375375 t .Run (tt .name , func (t * testing.T ) {
376376 output , err := executeCommand (rootCmd , tt .args ... )
377-
377+
378378 if (err != nil ) != tt .wantErr {
379379 t .Errorf ("expected error: %v, got: %v" , tt .wantErr , err )
380380 }
381-
381+
382382 if tt .check != nil {
383383 tt .check (t , output )
384384 }
@@ -489,14 +489,14 @@ func TestUUIDSpecificCases(t *testing.T) {
489489 for _ , tt := range tests {
490490 t .Run (tt .name , func (t * testing.T ) {
491491 output , err := executeCommand (newRootCommand (), tt .args ... )
492-
492+
493493 if (err != nil ) != tt .wantErr {
494494 t .Errorf ("expected error: %v, got: %v (output: %s)" , tt .wantErr , err , output )
495495 }
496-
496+
497497 if tt .check != nil {
498498 tt .check (t , output )
499499 }
500500 })
501501 }
502- }
502+ }
0 commit comments