Skip to content

Commit

Permalink
Removed unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshwani committed Aug 23, 2023
1 parent dc286ca commit fe38079
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions contrib/executor/jmeterd/pkg/jmeter_env/env.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package jmeter_env

import (
"fmt"
"strings"

"github.com/kubeshop/testkube/pkg/api/v1/testkube"
Expand All @@ -28,22 +27,11 @@ func ExtractSlaveEnvVariables(variables map[string]testkube.Variable) map[string
case strings.HasPrefix(varName, SlavesPrefix):
slaveVariables[varName] = v
delete(variables, varName) // Remove slave variable from the main variables map.
case strings.HasPrefix(varName, MasterPrefix):
case strings.HasPrefix(varName, MasterPrefix):
continue
default:
slaveVariables[varName] = v
}
}
return slaveVariables
}

// Split JemeterProperties provided using ',' seperator
// Append -G to each jmeter properties
func FormatJmeterProperties(jmeterProperties string) []string {
finalJmeterPopertiesArgs := []string{}
jmeterArgs := strings.Split(jmeterProperties, ",")
for _, jmeterArg := range jmeterArgs {
finalJmeterPopertiesArgs = append(finalJmeterPopertiesArgs, fmt.Sprintf("-G%s", strings.TrimSpace(jmeterArg)))
}
return finalJmeterPopertiesArgs
}

0 comments on commit fe38079

Please sign in to comment.