MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / read_file

Function read_file

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

Source from the content-addressed store, hash-verified

657}
658
659fn read_file(file_path: impl AsRef<Path>) -> anyhow::Result<String> {
660 fs::read_to_string(&file_path)
661 .with_context(|| format!("failed to read {}", file_path.as_ref().to_string_lossy()))
662}
663
664fn parse_cometbft_node_id(value: impl AsRef<str>) -> anyhow::Result<String> {
665 let value = value.as_ref().trim().to_string();

Callers 2

cometbft_node_idMethod · 0.85
fendermint_peer_idMethod · 0.85

Calls 2

read_to_stringFunction · 0.85
with_contextMethod · 0.80

Tested by

no test coverage detected