| 6832 | } imported_generation_t; |
| 6833 | |
| 6834 | static imported_generation_t import_artifact_generation(const char *repo_path, |
| 6835 | const char *import_path, |
| 6836 | const char *project) { |
| 6837 | imported_generation_t result = { |
| 6838 | .rc = cbm_artifact_import(repo_path, import_path), |
| 6839 | .before_nodes = -1, |
| 6840 | .after_nodes = -1, |
| 6841 | }; |
| 6842 | if (result.rc == 0) { |
| 6843 | observe_named_generation(import_path, project, "StoredBefore", "StoredAfter", |
| 6844 | &result.before_nodes, &result.after_nodes); |
| 6845 | } |
| 6846 | return result; |
| 6847 | } |
| 6848 | |
| 6849 | static bool stored_mode_is_full(const char *db_path, const char *project) { |
| 6850 | cbm_store_t *store = cbm_store_open_path(db_path); |
no test coverage detected