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