MCPcopy Create free account
hub / github.com/ExtropyIO/SolanaBootcamp / test_clean

Function test_clean

homeworks_rust/src/exercise.rs:268–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266
267 #[test]
268 fn test_clean() {
269 File::create(&temp_file()).unwrap();
270 let exercise = Exercise {
271 name: String::from("example"),
272 path: PathBuf::from("tests/fixture/state/pending_exercise.rs"),
273 mode: Mode::Compile,
274 hint: String::from(""),
275 };
276 let compiled = exercise.compile().unwrap();
277 drop(compiled);
278 assert!(!Path::new(&temp_file()).exists());
279 }
280
281 #[test]
282 fn test_pending_state() {

Callers

nothing calls this directly

Calls 2

temp_fileFunction · 0.85
compileMethod · 0.80

Tested by

no test coverage detected