Open aexvir opened 1 year ago
closes #100
to address this issue I've added an eager return inside structValues that, if the struct has no fields, appends a single entry to the changelog for the struct itself; also added tests for this
structValues
wants, got := Set{"one": {}}, Set{} diff.Diff(wants, got) diff.Changelog{ diff.Change{ Type: diff.DELETE, Path: []string{"one"}, From: struct{}{}, To: nil, }, }
closes #100
to address this issue I've added an eager return inside
structValues
that, if the struct has no fields, appends a single entry to the changelog for the struct itself; also added tests for this