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

Function test_usr_etc

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

Source from the content-addressed store, hash-verified

1041
1042 #[test]
1043 fn test_usr_etc() -> Result<()> {
1044 let root = &fixture()?;
1045 let config = &LintExecutionConfig::default();
1046 // This one should pass
1047 check_usretc(root, config).unwrap().unwrap();
1048 root.create_dir_all("etc")?;
1049 root.create_dir_all("usr/etc")?;
1050 assert!(check_usretc(root, config).unwrap().is_err());
1051 root.remove_dir_all("etc")?;
1052 // Now we should pass again
1053 check_usretc(root, config).unwrap().unwrap();
1054 Ok(())
1055 }
1056
1057 #[test]
1058 fn test_varlog() -> Result<()> {

Callers

nothing calls this directly

Calls 2

check_usretcFunction · 0.85
fixtureFunction · 0.70

Tested by

no test coverage detected