Benchmark marshal (#550)
This commit is contained in:
+15
-1
@@ -688,7 +688,7 @@ B = "data"`,
|
||||
"Name": "Hammer",
|
||||
"Sku": int64(738594937),
|
||||
},
|
||||
nil,
|
||||
map[string]interface{}(nil),
|
||||
map[string]interface{}{
|
||||
"Name": "Nail",
|
||||
"Sku": int64(284758393),
|
||||
@@ -1201,6 +1201,20 @@ B = "data"`,
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "empty array table in interface{}",
|
||||
input: `[[products]]`,
|
||||
gen: func() test {
|
||||
return test{
|
||||
target: &map[string]interface{}{},
|
||||
expected: &map[string]interface{}{
|
||||
"products": []interface{}{
|
||||
map[string]interface{}(nil),
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "into map with invalid key type",
|
||||
input: `A = "hello"`,
|
||||
|
||||
Reference in New Issue
Block a user