MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / lines_from_file

Function lines_from_file

ciphercore-base/src/graphs.rs:5365–5371  ·  view source on GitHub ↗
(filename: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

5363 };
5364
5365 fn lines_from_file(filename: impl AsRef<Path>) -> Vec<String> {
5366 let file = File::open(filename).expect("no such file");
5367 let buf = BufReader::new(file);
5368 buf.lines()
5369 .map(|l| l.expect("Could not parse line"))
5370 .collect()
5371 }
5372
5373 #[test]
5374 fn test_context_serialize() {

Callers 1

test_context_serializeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_context_serializeFunction · 0.68