Gstruct

Deep, partial matching of nested structs, slices, maps, and pointers with gstruct — MatchAllFields/MatchFields/Fields, MatchAllElements/MatchElements/Elements (idFn), MatchAllKeys/MatchKeys/Keys, PointTo, and the IgnoreExtras/IgnoreMissing/IgnoreUnexportedExtras/AllowDuplicates options, plus Ignore()/Reject(). Use when asserting against large or deeply nested data structures where you want to apply a different matcher to each field, element, or key.

onsi ccfae45 6.6 KB Updated

File contents

onsi/gomega/tree/main/plugins/gomega/skills/gstruct commit ccfae45244

Frequently asked questions

npx skillmds@latest add onsi/gstruct