MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / read_file

Function read_file

fendermint/testing/materializer/src/docker/node.rs:625–628  ·  view source on GitHub ↗
(file_path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

623}
624
625fn 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
630fn parse_cometbft_node_id(value: impl AsRef<str>) -> anyhow::Result<String> {
631 let value = value.as_ref().trim().to_string();

Callers 2

cometbft_node_idMethod · 0.85
fendermint_peer_idMethod · 0.85

Calls 1

with_contextMethod · 0.80

Tested by

no test coverage detected