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

Function test_lint_main

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

Source from the content-addressed store, hash-verified

965
966 #[test]
967 fn test_lint_main() -> Result<()> {
968 let root = &passing_fixture()?;
969 let config = &LintExecutionConfig::default();
970 let mut out = Vec::new();
971 let warnings = WarningDisposition::FatalWarnings;
972 let root_type = RootType::Alternative;
973 lint(root, warnings, root_type, [], &mut out, config.no_truncate).unwrap();
974 root.create_dir_all("var/run/foo")?;
975 let mut out = Vec::new();
976 assert!(lint(root, warnings, root_type, [], &mut out, config.no_truncate).is_err());
977 Ok(())
978 }
979
980 #[test]
981 fn test_lint_inner() -> Result<()> {

Callers

nothing calls this directly

Calls 2

passing_fixtureFunction · 0.85
lintFunction · 0.85

Tested by

no test coverage detected