mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Fix comment on SplitIndexNameValue
It was incorrect and suggested some behaviour which isn't present. Added test to verify the documented behaviour.
This commit is contained in:
@@ -518,6 +518,11 @@ func TestSplitIndexNameValue(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "a", k)
|
||||
assert.Equal(t, "b=c", v)
|
||||
|
||||
k, v, err = SplitIndexNameValue("=-jar")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "", k)
|
||||
assert.Equal(t, "-jar", v)
|
||||
}
|
||||
|
||||
type filter struct {
|
||||
|
||||
Reference in New Issue
Block a user