News for hackers. Stuff that matters.
Re:I found a bug in SQLite by valray on Sunday December 11, 2022 @03:08PM (#33946935)
> This tend to be true for most serious projects, that the amount of test code is greater than that of the code that is being exercised.

Reading this comment, I was thinking "Oh that must mean the test code is 2x or maybe even 3x the amount of source code"

Going to the SQLite web site, I was surprised to find that the test code is 600x larger than the source code. Impressive.

Is this 600:1 ratio typical for other projects? The ones that I have seen are more like 1x or 2x, but I have not worked with many open source systems.

Re:I found a bug in SQLite by baq on Sunday December 11, 2022 @03:43PM (#33947273)
They count post-codegen test LOC, the checked in ratio is much smaller - used to be something like 5:1. Still super impressive!