Skip to content

Commit

Permalink
Use camelCase in test method names
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshgkwd05 committed Sep 7, 2023
1 parent 9a6d2bc commit 2ea7d81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/kor/kor.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func GetKubeClient(kubeconfig string) *kubernetes.Clientset {
kubeconfig = GetKubeConfigPath()
}
}

config, err := clientcmd.BuildConfigFromFlags("", kubeconfig)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to load kubeconfig: %v\n", err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/kor/kor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ kind: Config
return fakeContent
}

func TestGetKubeClient_fromEnvVar(t *testing.T) {
func TestGetKubeClientFromEnvVar(t *testing.T) {
configFile, err := os.CreateTemp("", "kubeconfig-")
if err != nil {
t.Error(err)
Expand All @@ -105,7 +105,7 @@ func TestGetKubeClient_fromEnvVar(t *testing.T) {
}
}

func TestGetKubeClient_fromInput(t *testing.T) {
func TestGetKubeClientFromInput(t *testing.T) {
configFile, err := os.CreateTemp("", "kubeconfig")
if err != nil {
t.Error(err)
Expand Down

0 comments on commit 2ea7d81

Please sign in to comment.