News for hackers. Stuff that matters.
Re:The Use of assert() in SQLite by repsilat on Friday April 26, 2019 @10:50PM (#19763453)
Interesting how it's different to branch coverage. If you have

    if(X) {}
    else {}
    if(Y) {}
    else {}
"normal test coverage" is weaker than SQLite tests with the following lines added:

    testcase(X && Y);
    testcase(X && !Y);
    testcase(!X && Y);
    testcase(!X && !Y);
I wasn't sure when reading the article, to be honest, but making sure you test things you don't explicitly branch on is kinda cool.

There are no comments on this comment yet.