MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / change_file

Method change_file

crates/cargo-lambda-cli/tests/harness/project.rs:71–73  ·  view source on GitHub ↗

/// Changes the contents of an existing file.

(&self, path: &str, body: &str)

Source from the content-addressed store, hash-verified

69
70 // /// Changes the contents of an existing file.
71 pub fn change_file(&self, path: &str, body: &str) {
72 FileBuilder::new(self.root().join(path), body, false).mk()
73 }
74
75 /// Returns the contents of a path in the project root
76 pub fn read_file(&self, path: &str) -> String {

Callers 1

test_projectFunction · 0.80

Calls 3

newFunction · 0.85
mkMethod · 0.80
rootMethod · 0.45

Tested by

no test coverage detected