MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / test_project

Function test_project

crates/cargo-lambda-cli/tests/harness/mod.rs:64–71  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

62}
63
64pub fn test_project<P: AsRef<Path>>(path: P) -> Project {
65 let project = Project::from_template(path);
66 let metadata = project.read_file("Cargo.toml");
67 let metadata = format!("{metadata}\n\n[workspace]\n");
68 project.change_file("Cargo.toml", &metadata);
69
70 project
71}
72
73pub fn cargo_lambda_new<P: AsRef<Path>>(project_name: &str, template: P) -> LambdaProject {
74 let project = project::project().build();

Callers 1

test_projectMethod · 0.85

Calls 2

read_fileMethod · 0.80
change_fileMethod · 0.80

Tested by

no test coverage detected