(file_path: impl AsRef<Path>)
| 623 | } |
| 624 | |
| 625 | fn read_file(file_path: impl AsRef<Path>) -> anyhow::Result<String> { |
| 626 | std::fs::read_to_string(&file_path) |
| 627 | .with_context(|| format!("failed to read {}", file_path.as_ref().to_string_lossy())) |
| 628 | } |
| 629 | |
| 630 | fn parse_cometbft_node_id(value: impl AsRef<str>) -> anyhow::Result<String> { |
| 631 | let value = value.as_ref().trim().to_string(); |
no test coverage detected