[−][src]Macro auto_delete_path::include_to_auto_delete_path
Macro for including a source file, and writing it to a new AutoDeletePath::temp
.
Useful for testing.
Panics
Panics if writing to the tempfile fails.
Example
let tmp_path = auto_delete_path::include_to_auto_delete_path!("test-resources/test-include.txt"); assert_eq!(std::fs::read_to_string(&tmp_path).unwrap(), "Included file!\n");