mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add benchfn and testfn allowing easy overwrite of test and benchmark runners. #990
This commit is contained in:
committed by
Christoffer Lerno
parent
dde73e029c
commit
ad776c76a7
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user