4 Commits

Author SHA1 Message Date
Ronald Caesar bf360f9bc8 tests/decoder: skip empty buckets
If a hash bucket is empty, the test still loops 2,097,152 times which
is crazy. An empty bucket means `bal_decode_arm64()` will always
return NULL, so I've added a `continue` statement to skip the massive
loop.

Signed-off-by: Ronald Caesar <github43132@proton.me>
2026-06-11 22:44:22 -04:00
Ronald Caesar 62729b3626 tests/decoder: make hash table test multithreaded
This reduces execution time from an average of 50s to 9s on my CPU.

Signed-off-by: Ronald Caesar <github43132@proton.me>
2026-04-16 18:21:42 -04:00
Ronald Caesar 1fc5d28c52 tests/decoder: integrate decoder tests into gtest
So we convert test_decoder.c into a .cpp file and add the necessary
changes. I also added new tests for more branch coverage.

Signed-off-by: Ronald Caesar <github43132@proton.me>
2026-04-16 18:21:42 -04:00
Ronald Caesar 5e77a6ec44 extern/gtest: add gtest to the source tree
This is the Testing Suite Ballistic will use beacuse gtest compiles each
test as an individual executable, which is very usefull because of the
amount of logging Ballistic does.

Signed-off-by: Ronald Caesar <github43132@proton.me>
2026-04-10 15:36:49 -04:00