There was an error while loading. Please reload this page.
1 parent d3a80f5 commit a21eddeCopy full SHA for a21edde
1 file changed
tool/cmdwrapper/cmdwrapper_test.go
@@ -98,9 +98,11 @@ func TestExecuteAgentCommand_HappyPath(t *testing.T) {
98
99
// Test data
100
command := "fetch-config"
101
+ configValue := "config-value"
102
+ modeValue := "mode-value"
103
flags := map[string]*string{
- "config": stringPtr("config-value"),
- "mode": stringPtr("mode-value"),
104
+ "config": &configValue,
105
+ "mode": &modeValue,
106
}
107
108
// Execute the function
@@ -135,8 +137,3 @@ func TestExecuteAgentCommand_HappyPath(t *testing.T) {
135
137
136
138
139
-
-// Helper function to create string pointer
140
-func stringPtr(s string) *string {
141
- return &s
142
-}
0 commit comments