We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a26641d + 3f3cd5a commit 8099291Copy full SHA for 8099291
examples/wasm_modules/rust-wasm/fake.wasm
wasm_runtime/src/module.rs
@@ -109,7 +109,7 @@ mod tests {
109
}
110
111
#[test]
112
- fn test_load_from_file_failure() {
+ fn test_load_from_file_failure_nonexistent() {
113
// setup non-existent path
114
const PATH: &str = "../attempt/to/load/me.wasm";
115
@@ -119,4 +119,16 @@ mod tests {
119
// test assertion
120
assert!(res.is_err());
121
122
+
123
+ #[test]
124
+ fn test_load_from_file_failure_fakefile() {
125
+ // setup fake path
126
+ const PATH: &str = "../examples/wasm_modules/rust-wasm/fake.wasm";
127
128
+ // execute test of failed load
129
+ let res = WasmModule::load_from_file(PATH);
130
131
+ // test assertion
132
+ assert!(res.is_err());
133
+ }
134
0 commit comments