Merge pull request #1082 from TornaxO7/post_04_pub_fn_test_runner

Adding fix to make the test_runner functions pub
This commit is contained in:
Philipp Oppermann
2023-12-28 17:20:22 +01:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ To implement a custom test framework for our kernel, we add the following to our
#![test_runner(crate::test_runner)]
#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
pub fn test_runner(tests: &[&dyn Fn()]) {
println!("Running {} tests", tests.len());
for test in tests {
test();