pub fn must_read_binary_file(filename: &str) -> Binary {
    match File::open(filename) {
        Ok(mut file) => {
            let mut content = String::new();
            file.read_to_string(&mut content).unwrap();
            Binary::from(content.as_bytes())
        }
        Err(error) => {
            panic!("Error opening file {}: {}", filename, error);
        }
    }
}
/// A helper function for mock testing. This function allows tests to read a file in CosmWasm binary
/// format. This function will panic on any error. Because of this, it should only be used in tests.
A helper function for mock testing. This function allows tests to read a file in CosmWasm binary
format. This function will panic on any error. Because of this, it should only be used in tests.
A helper function for mock testing . This function allows tests to read a file in CosmWasm binary format . This function will panic on any error . Because of this it should only be used in tests .
pub fn must_read_binary_file(filename: &str) -> Binary {
    match File::open(filename) {
        Ok(mut file) => {
            let mut content = String::new();
            file.read_to_string(&mut content).unwrap();
            Binary::from(content.as_bytes())
        }
        Err(error) => {
            panic!("Error opening file {}: {}", filename, error);
        }
    }
}
pub fn must_read_binary_file ( filename : & str ) -> Binary { match File :: open ( filename ) { Ok ( mut file ) => { let mut content = String :: new ( ) ; file . read_to_string ( & mut content ) . unwrap ( ) ; Binary :: from ( content . as_bytes ( ) ) } Err ( error ) => { panic ! ( " " filename error ) ; } } }
A helper function for mock testing.
A helper function for mock testing .
filename
&str
filename
&str