MCPcopy Create free account
hub / github.com/Qovery/engine / read_lines

Function read_lines

app/src/utils.rs:31–34  ·  view source on GitHub ↗
(filename: P)

Source from the content-addressed store, hash-verified

29#[allow(dead_code)] // used by main for tests
30pub fn check_versions_from(path: &str) -> Result<(), EngineInitError> {
31 fn read_lines<P: AsRef<Path>>(filename: P) -> io::Result<io::Lines<BufReader<File>>> {
32 let file = File::open(filename)?;
33 Ok(BufReader::new(file).lines())
34 }
35
36 // please append this vector if you want to test more binaries
37 let bin_to_check = ["terraform"];

Callers 1

check_versions_fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected