From 297ee308a82c6f71afcb0ddb5ebc84c319f0a78b Mon Sep 17 00:00:00 2001 From: Gerrit Date: Tue, 2 Apr 2024 14:00:53 +0200 Subject: [PATCH] Remove comments. --- cmd/update_test.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cmd/update_test.go diff --git a/cmd/update_test.go b/cmd/update_test.go deleted file mode 100644 index c71e368..0000000 --- a/cmd/update_test.go +++ /dev/null @@ -1,29 +0,0 @@ -package cmd - -// import ( -// "testing" - -// "github.com/metal-stack/metalctl/cmd/completion" -// "github.com/spf13/afero" -// ) - -// func TestUpdateDoCommand(t *testing.T) { -// c := &config{fs: afero.NewMemMapFs(), out: nil, driverURL: "", comp: &completion.Completion{}, client: nil, log: nil, describePrinter: nil, listPrinter: nil} // Initialize your config here as needed -// test := newRootCmd(c) -// //updateCmd := newUpdateCmd(c) - -// // Simulate "update do --version v0.15.3" -// test.SetArgs([]string{"update", "do", "--version", "v0.15.3"}) - -// // Execute the command -// err := test.Execute() -// if err != nil { -// t.Fatalf("updateCmd.Execute() failed: %v", err) -// } - -// // Assert that desired version is set to "v0.15.3" -// // This step assumes you have a way to verify the version was set correctly, -// // such as checking a variable in your application that should be set based on the flag. -// // Since your current implementation directly uses Viper and updater.New(), -// // you might need to refactor to make it testable or mock certain parts. -// }