nil deserialize

This commit is contained in:
ycc
2022-05-20 15:12:04 +02:00
parent 85d2790bb2
commit 4e17758e15
15 changed files with 317 additions and 0 deletions

View File

@@ -85,6 +85,11 @@ func TestInsert(t *testing.T) {
if len(jsonStringOld) == len(jsonStringNew) {
t.Errorf("Error row not created")
}
jsonFile, err := os.Open("insert.json")
defer jsonFile.Close()
var result map[string]interface{}
byteValue, _ := ioutil.ReadAll(jsonFile)
json.Unmarshal(byteValue, &result)
}
func TestUpdate(t *testing.T) {