adding extra test case

This commit is contained in:
sharifelgamal
2018-03-26 14:13:20 -07:00
parent 4551bd0dc0
commit 96b0b12bc7
+8 -3
View File
@@ -43,12 +43,17 @@ func TestUpdateLabels(t *testing.T) {
Key: "multiword",
Value: "lots\\ of\\ words",
},
{
Key: "backslashes",
Value: "lots\\\\ of\\\\ words",
},
}
expectedLabels := map[string]string{
"foo": "override",
"bar": "baz",
"multiword": "lots of words",
"foo": "override",
"bar": "baz",
"multiword": "lots of words",
"backslashes": "lots\\ of\\ words",
}
updateLabels(labels, cfg)
testutil.CheckErrorAndDeepEqual(t, false, nil, expectedLabels, cfg.Labels)