MCPcopy Create free account
hub / github.com/bootc-dev/bootc / test_api

Function test_api

crates/lib/src/lints.rs:954–964  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

952
953 #[test]
954 fn test_api() -> Result<()> {
955 let root = &passing_fixture()?;
956 let config = &LintExecutionConfig::default();
957 // This one should pass
958 check_api_dirs(root, config).unwrap().unwrap();
959 root.remove_dir("var")?;
960 assert!(check_api_dirs(root, config).unwrap().is_err());
961 root.write("var", "a file for var")?;
962 assert!(check_api_dirs(root, config).unwrap().is_err());
963 Ok(())
964 }
965
966 #[test]
967 fn test_lint_main() -> Result<()> {

Callers

nothing calls this directly

Calls 2

passing_fixtureFunction · 0.85
check_api_dirsFunction · 0.85

Tested by

no test coverage detected