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

Function test_var_run

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

Source from the content-addressed store, hash-verified

938
939 #[test]
940 fn test_var_run() -> Result<()> {
941 let root = &fixture()?;
942 let config = &LintExecutionConfig::default();
943 // This one should pass
944 check_var_run(root, config).unwrap().unwrap();
945 root.create_dir_all("var/run/foo")?;
946 assert!(check_var_run(root, config).unwrap().is_err());
947 root.remove_dir_all("var/run")?;
948 // Now we should pass again
949 check_var_run(root, config).unwrap().unwrap();
950 Ok(())
951 }
952
953 #[test]
954 fn test_api() -> Result<()> {

Callers

nothing calls this directly

Calls 2

check_var_runFunction · 0.85
fixtureFunction · 0.70

Tested by

no test coverage detected