Generate test cases path by fid
(problem: &Problem)
| 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> { |
no outgoing calls
no test coverage detected