MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read

Function read

atomic-cli/tests/it/workspace_txn_routing_cb5c_test.rs:106–110  ·  view source on GitHub ↗
(relative: &str)

Source from the content-addressed store, hash-verified

104}
105
106fn read(relative: &str) -> String {
107 let contents = fs::read_to_string(manifest_dir().join(relative))
108 .unwrap_or_else(|error| panic!("cannot read {relative}: {error}"));
109 strip_tests(&contents)
110}
111
112fn strip_tests(contents: &str) -> String {
113 // Windows checkouts may use CRLF; strip the test module on either platform.

Calls 2

strip_testsFunction · 0.85
manifest_dirFunction · 0.70

Tested by

no test coverage detected