You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: html5-parser-test.rs
    path of file: ./repos/gosub-engine/src/bin
    
    the code of the file until where you have to start completion: use gosub_shared::types::Result;
use gosub_testing::testing::tree_construction::fixture::{
    fixture_root_path, read_fixture_from_path,
};
use gosub_testing::testing::tree_construction::Harness;
use std::io::Write;
use std::path::{Path, PathBuf};
use walkdir::WalkDir;

fn main() -> Result<()> {
    let mut files = get_files_from_path(fixture_root_path());
    files.sort();

    let mut total = 0;
    let mut failed = 0;

    for file in &files {
        // if file != "math.dat" {
        //     continue;
        // }
        let fixture = read_fixture_from_path(&fixture_root_path().join(file))?;

        print!("Test: ({:3}) {} [", fixture.tests.len(), file);
        let _ = std::io::stdout().flush();

        let mut harness = Harness::new();

        // Run tests
        for test in &fixture.tests {
            for &scripting_enabled in test.script_modes() {
     
    
fn main() -> Result<()> {
    let mut files = get_files_from_path(fixture_root_path());
    files.sort();

    let mut total = 0;
    let mut failed = 0;

    for file in &files {
        // if file != "math.dat" {
        //     continue;
        // }
        let fixture = read_fixture_from_path(&fixture_root_path().join(file))?;

        print!("Test: ({:3}) {} [", fixture.tests.len(), file);
        let _ = std::io::stdout().flush();

        let mut harness = Harness::new();

        // Run tests
        for test in &fixture.tests {
            for &scripting_enabled in test.script_modes() {
                let result = harness
                    .run_test(test.clone(), scripting_enabled)
                    .expect("problem parsing");

                total += 1;

                if result.is_success() {
                    print!(".");
                } else {
                    print!("X");
                    failed += 1;
                }
                let _ = std::io::stdout().flush();
            }
        }

        println!("]");
    }

    println!(
        "All tests completed. {}/{} ({:.2}%) passed.",
        total - failed,
        total,
        (total - failed) as f32 / total as f32 * 100_f32
    );

    Ok(())
}