MCPcopy Create free account
hub / github.com/bevyengine/bevy-website / test_write_pages

Function test_write_pages

generate-errors/src/lib.rs:220–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218
219 #[test]
220 fn test_write_pages() {
221 // Fake content folder
222 // named uniquely to avoid
223 // parallel test failures.
224 let output_path = Path::new("pages_content/learn");
225 let pages_content =
226 get_error_pages(Path::new("./bevy/errors")).expect("Page content should be valid");
227
228 let result: anyhow::Result<()> = write_pages(output_path, pages_content);
229 assert!(result.is_ok());
230
231 // Clean up after tests
232 fs::remove_dir_all("pages_content").unwrap();
233 }
234}

Callers

nothing calls this directly

Calls 2

get_error_pagesFunction · 0.85
write_pagesFunction · 0.85

Tested by

no test coverage detected