New ๐ŸŒŠ wave for @helm

Commit 2aa9d3d0

2aa9d3d08072Merged

Dmitrii Zhiliaev <[email protected]> ยท 1 year ago ยท 1 file ยท ~1 modified

Description

test: chatgpt did it

Details

Commit
2aa9d3d08072
Parent
8e895302c185

cmd/helmwave/completion_internal_test.gomodifiedView file

@@ -27,9 +27,12 @@
2727 },
2828 }
2929
30- app, _, _, _ := ts.prepareApp() //nolint:dogsled // no need to access nor stdin or stdout or stderr
30+ app, _, _, _ := ts.prepareApp() //nolint:dogsled // no need to access nor stdin/stderr
3131
32- for _, tt := range tests {
32+ // Avoid copying structs by using indices.
33+ for i := range tests {
34+ tt := &tests[i] // Take a pointer to the struct instead of copying it.
35+
3336 if tt.fails {
3437 ts.Run("fails case", func() {
3538 ts.Assert().Panics(func() {