SwuduSusuwu / SubStack

Stages blog posts, has C++ sources which match posts. Blog is about antivirus + autonomous tools + human nervous tissues
https://SwuduSusuwu.substack.com/
Apache License 2.0
1 stars 0 forks source link

`Susuwu::unitTestsCxx` tests ~72% of executable routes (half coverage), must do >92% to have value #14

Open SwuduSusuwu opened 4 months ago

SwuduSusuwu commented 4 months ago

susuwuUnitTests/Susuwu::unitTestsCxx Rationale: has use for Agile, [_test-driven development_https://wikipedia.org/wiki/Unit_testing#Test-driven_development) workflows. Background: https://github.com/SwuduSusuwu/SubStack/commit/91dfea6c5378224b0561024f5d2eaf5db941d97b https://github.com/SwuduSusuwu/SubStack/commit/9c618b927336af4043a8f564b450fb8df8cd7c2b https://github.com/SwuduSusuwu/SubStack/commit/e5a61188db8244400ec91f7c2ac774a72feda93a https://github.com/SwuduSusuwu/SubStack/commit/9598ddecfdb56e804084326a1fd7fc0ee45d2d18 https://github.com/SwuduSusuwu/SubStack/commit/81be1510498b0e3230508ec94984253bb6f772d0

SwuduSusuwu commented 1 month ago

+PortableExecutableBytecode Initializes bytecode..@ef71ad0 ?importedFunctionsList return {}; // fixes crash@ddf6b54 ?listOfSubstr*Match if(list.empty()) {return;}@f9d31dc ?virusAnalysisTests %s/passList/passOrNull/,@b47ba58 ?virusAnalysisTests Use resultListProduceHashes,@fcf7f99 ?cxx/ClassSha2.cxx %s/reserve/resize/ Fixes@4272136 improved coverage of tests to about ~62%

SwuduSusuwu commented 1 month ago

?testHarnesses() +classSha2Tests() /* Correctness@36682e1 +.github/workflows/codacy.yml New GitHub analysis.@36fa8a5 ?build.sh:+CXX_FLAGS_ANALYSIS="-Wall -Werror@64ca540 ?cxx/ClassSha2.xx:+classSha2TestsNoexcept /@fe50c54 improves coverage of tests to about ~72%

SwuduSusuwu commented 1 month ago

?virusAnalysisTests() False negative tests, cache@09bd2d3 improves functional tests (unit tests)

?build.sh Use linker result as return value,@e4d6a10 improves autonomous build tests (such as GitHub scripts use)

SwuduSusuwu commented 2 weeks ago

Ignore 3c9a321 abe00f8 bbb4a8a; those were from a local branch (not supposed to commit.)