fuzz tests fill most of the gaps and find you problems
good real world data sets can stress test your code too, nostr:npub12262qa4uhw7u8gdwlgmntqtv7aye8vdcmvszkqwgs0zchel6mz7s6cgrkj provided me with a gigadump of 180Gb of event data and it uncovered several bugs in my json parsing code (and revealed that maybe over 1% of all events are malformed so far)