(&self, program: &Program)
| 540 | } |
| 541 | |
| 542 | pub fn save_succ_program(&self, program: &Program) -> Result<PathBuf> { |
| 543 | let seed_path = self.get_succ_seed_path_by_id(program.id)?; |
| 544 | let content = [ |
| 545 | utils::format_library_header_strings(self).to_string(), |
| 546 | program.serialize(), |
| 547 | ] |
| 548 | .concat(); |
| 549 | std::fs::write(&seed_path, content)?; |
| 550 | remove_duplicate_definition(&seed_path)?; |
| 551 | Ok(seed_path) |
| 552 | } |
| 553 | |
| 554 | pub fn save_err_program( |
| 555 | &mut self, |
no test coverage detected