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: workspace_tests.rs
    path of file: ./repos/FireDBG.for.Rust/parser/tests
    
    the code of the file until where you have to start completion: mod common;

pub use firedbg_rust_parser::*;
pub use pretty_assertions::assert_eq;

async fn run_workspace_parsing(
    root_dir: &str,
    workspace_expected: Workspace,
) -> anyhow::Result<Workspace> {
    let workspace = parse_workspace(root_dir)?;

    println!("{:#?}", workspace);

    let firedbg_dir = format!("{root_dir}/firedbg");

    std::fs::create_dir_all(&firedbg_dir)?;

    let bson_path = format!("{firedbg_dir}/workspace");

    serde::to_bson_file(&format!("{bson_path}.bson"), &workspace).await?;
    serde::to_json_file(&format!("{bson_path}.json"), &workspace).await?;

    assert_eq!(
        workspace_expected,
        serde::from_bson_file(&format!("{}.bson", bson_path)).await?,
    );

    assert_eq!(workspace_expected, workspace);

    Ok(workspace)
}

#[tokio::test]
async fn parse_example_workspace() -> anyhow::Result<()> {
    let workspace = run_workspace_parsing(
        concat!(env!("CARGO_MANIFEST_DIR"), "/tests/example-workspace"),
        Workspace {
            packages: vec![
                Package {
                    name: "main-one".into(),
                    version: "0.1.0".into(),
                    root_dir: concat!(
                        env!("CARGO_MANIFEST_DIR"),
                        "/tests/example-workspace/main-one"
                    )
                 
    
async fn parse_example_without_workspace() -> anyhow::Result<()> {
    run_workspace_parsing(
        concat!(
            env!("CARGO_MANIFEST_DIR"),
            "/tests/example-without-workspace"
        ),
        Workspace {
            packages: vec![Package {
                name: "example-without-workspace".into(),
                version: "0.1.0".into(),
                root_dir: concat!(
                    env!("CARGO_MANIFEST_DIR"),
                    "/tests/example-without-workspace"
                )
                .into(),
                dependencies: vec![],
                binaries: vec![Binary {
                    name: "example-without-workspace".into(),
                    src_path: concat!(
                        env!("CARGO_MANIFEST_DIR"),
                        "/tests/example-without-workspace/src/main.rs"
                    )
                    .into(),
                }],
                tests: vec![],
                examples: vec![],
                has_lib: false,
            }],
            target_dir: concat!(
                env!("CARGO_MANIFEST_DIR"),
                "/tests/example-without-workspace/target"
            )
            .into(),
            root_dir: concat!(
                env!("CARGO_MANIFEST_DIR"),
                "/tests/example-without-workspace"
            )
            .into(),
        },
    )
    .await?;
    Ok(())
}