@@ -849,20 +849,21 @@ func TestKvListFormat(t *testing.T) {
849849 keysValues : []interface {}{"pod" , "kubedns" , "spec" , struct {
850850 X int
851851 Y string
852- }{X : 76 , Y : "strval" }},
853- want : " pod=\" kubedns\" spec=struct { X int; Y string }{X:76, Y:\" strval\" }" ,
852+ N time.Time
853+ }{X : 76 , Y : "strval" , N : time .Date (2006 , 1 , 2 , 15 , 4 , 5 , .067890e9 , time .UTC )}},
854+ want : " pod=\" kubedns\" spec={X:76 Y:strval N:2006-01-02 15:04:05.06789 +0000 UTC}" ,
854855 },
855856 {
856857 keysValues : []interface {}{"pod" , "kubedns" , "values" , []int {8 , 6 , 7 , 5 , 3 , 0 , 9 }},
857- want : " pod=\" kubedns\" values=[]int{8, 6, 7, 5, 3, 0, 9} " ,
858+ want : " pod=\" kubedns\" values=[8 6 7 5 3 0 9] " ,
858859 },
859860 {
860861 keysValues : []interface {}{"pod" , "kubedns" , "values" , []string {"deployment" , "svc" , "configmap" }},
861- want : " pod=\" kubedns\" values=[]string{ \" deployment\" , \" svc\" , \" configmap\" } " ,
862+ want : " pod=\" kubedns\" values=[deployment svc configmap] " ,
862863 },
863864 {
864865 keysValues : []interface {}{"pod" , "kubedns" , "maps" , map [string ]int {"three" : 4 }},
865- want : " pod=\" kubedns\" maps=map[string]int{ \" three\" :4} " ,
866+ want : " pod=\" kubedns\" maps=map[three:4] " ,
866867 },
867868 {
868869 keysValues : []interface {}{"pod" , KRef ("kube-system" , "kubedns" ), "status" , "ready" },
0 commit comments