Skip to content

Commit

Permalink
Pass 2 : Add additional test for code coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Viraj Kulkarni <[email protected]>
  • Loading branch information
Viraj Kulkarni committed May 3, 2024
1 parent 18ae2b2 commit de82984
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/k8s-utils/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package utils

import (
"github.com/keikoproj/flippy/pkg/common"
"github.com/tj/assert"
"testing"
)

Expand Down Expand Up @@ -37,3 +38,18 @@ func TestIsStringMapSubset(t *testing.T) {
})
}
}

func TestIsStringMapSubsetNegative(t *testing.T) {

masterMap := make(map[string]string)
masterMap["test1"] = "test"
masterMap["test2"] = ""
masterMap["test3"] = "true"
masterMap["test4"] = "false"

subsetMap := make(map[string]string)
subsetMap["test5"] = "test"

got := IsStringMapSubset(masterMap, subsetMap)
assert.Equal(t, false, got)
}

0 comments on commit de82984

Please sign in to comment.