3 ms·
He's not as skilled as he thinks he is. And I can't even comment on the post, it returns a permissions error. Here was my comment: 1) Where's the unit test of
by pmarreck 10y ago
He's not as skilled as he thinks he is. And I can't even comment on the post, it returns a permissions error. Here was my comment:
1) Where's the unit test of this function? :)
2) The function could be purer. For example, sqlite3DbMallocZero could be passed in as an anonymous function. That way you could actually unit-test the out-of-memory condition that returns SQLITE_NOMEM_BKPT ... without actually being out-of-memory. ;)