(contents: &str, expect: CliError)
| 954 | "#; |
| 955 | |
| 956 | fn check_invalid(contents: &str, expect: CliError) -> ResultTest<()> { |
| 957 | let doc = contents.parse::<toml_edit::DocumentMut>()?; |
| 958 | let err = RawConfig::try_from(&doc); |
| 959 | assert_eq!(err.unwrap_err().to_string(), expect.to_string()); |
| 960 | |
| 961 | Ok(()) |
| 962 | } |
| 963 | |
| 964 | fn check_config<F>(input: &str, output: &str, f: F) -> ResultTest<()> |
| 965 | where |
searching dependent graphs…