MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / test_cases_path

Function test_cases_path

src/helper.rs:193–200  ·  view source on GitHub ↗

Generate test cases path by fid

(problem: &Problem)

Source from the content-addressed store, hash-verified

191
192 /// Generate test cases path by fid
193 pub fn test_cases_path(problem: &Problem) -> crate::Result<String> {
194 let conf = crate::config::Config::locate()?;
195 let mut path = format!("{}/{}.tests.dat", conf.storage.code()?, conf.code.pick);
196
197 path = path.replace("${fid}", &problem.fid.to_string());
198 path = path.replace("${slug}", &problem.slug.to_string());
199 Ok(path)
200 }
201
202 /// Generate code path by fid
203 pub fn code_path(problem: &Problem, l: Option<String>) -> crate::Result<String> {

Callers 2

pre_run_codeMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected