| 318 | return ok && retained && removed && pf_directory_only(f->destination, NULL); |
| 319 | } |
| 320 | static bool pf_snapshot_view(const cbm_userconfig_t *config, cbm_userconfig_source_state_t state, |
| 321 | const char *expected, size_t len) { |
| 322 | const char *bytes = "guard"; |
| 323 | size_t length = 123; |
| 324 | cbm_userconfig_source_state_t got = cbm_userconfig_project_source(config, &bytes, &length); |
| 325 | if (got != state || length != len) |
| 326 | return false; |
| 327 | return state == CBM_USERCONFIG_SOURCE_PRESENT ? bytes && !memcmp(bytes, expected, len) |
| 328 | : bytes == NULL; |
| 329 | } |
| 330 | static bool pf_config_failure(cbm_userconfig_t *guard, cbm_userconfig_source_state_t state, |
| 331 | const void *bytes, size_t len, |
| 332 | cbm_userconfig_snapshot_status_t expected) { |
no test coverage detected