()
| 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<()> { |
nothing calls this directly
no test coverage detected