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: invalid_loaders_test.rs
    path of file: ./repos/core/source/ports/rs_port/tests
    
    the code of the file until where you have to start completion: use metacall::{loaders, switch, MetacallLoaderError};
use std::env;

    
fn invalid_loaders() {
    let _d = switch::initialize().unwrap();

    let scripts_dir = env::current_dir().unwrap().join("tests/scripts");
    let inavlid_file = scripts_dir.join("whatever.yeet");
    let valid_file = scripts_dir.join("script.js");

    if let Err(MetacallLoaderError::FileNotFound(_)) =
        loaders::from_single_file("random", inavlid_file)
    {
        // Everything Ok
    } else {
        panic!("Expected the loader fail with `FileNotFound` error variant!");
    }

    if let Err(MetacallLoaderError::FromFileFailure) =
        loaders::from_single_file("random", valid_file)
    {
        // Everything Ok
    } else {
        panic!("Expected the loader fail with `FromFileFailure` error variant!");
    }

    if let Err(MetacallLoaderError::FromMemoryFailure) =
        loaders::from_memory("random", "Invalid code!")
    {
        // Everything Ok
    } else {
        panic!("Expected the loader fail with `FromMemoryFailure` error variant!");
    }
}