Decode: code cleanup for struct cache (#659)

This commit is contained in:
Thomas Pelletier
2021-11-07 18:35:30 -05:00
committed by GitHub
parent 11f789ef11
commit dc1740d473
4 changed files with 105 additions and 73 deletions
+13
View File
@@ -1037,6 +1037,19 @@ B = "data"`,
}
},
},
{
desc: "unexported struct fields are ignored",
input: `foo = "bar"`,
gen: func() test {
type doc struct {
foo string
}
return test{
target: &doc{},
expected: &doc{},
}
},
},
{
desc: "array table into nil ptr",
input: `[[foo]]