Add benchfn and testfn allowing easy overwrite of test and benchmark runners. #990

This commit is contained in:
Christoffer Lerno
2023-09-23 00:20:15 +02:00
committed by Christoffer Lerno
parent dde73e029c
commit ad776c76a7
10 changed files with 105 additions and 30 deletions

View File

@@ -136,7 +136,7 @@ fn bool run_benchmarks(BenchmarkUnit[] benchmarks)
return benchmark_count == benchmarks_passed;
}
fn bool __run_default_benchmark_runner()
fn bool default_benchmark_runner()
{
@pool()
{
@@ -245,7 +245,7 @@ fn bool run_tests(TestUnit[] tests)
return test_count == tests_passed;
}
fn bool __run_default_test_runner()
fn bool default_test_runner()
{
@pool()
{