3 ms·
Interesting how it's different to branch coverage. If you have if(X) {} else {} if(Y) {} else {} "normal test coverage" is weaker than SQLite
by repsilat 8y ago
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.