| 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) { |
| 333 | cbm_userconfig_t *out = guard; |
| 334 | cbm_userconfig_snapshot_status_t status = |
| 335 | cbm_userconfig_from_project_bytes(state, bytes, len, &out); |
| 336 | bool ok = status == expected && out == NULL; |
| 337 | if (out != guard) |
| 338 | cbm_userconfig_free(out); |
| 339 | return ok; |
| 340 | } |
| 341 | static bool pf_config_negatives(cbm_userconfig_t *guard) { |
| 342 | const char *invalid[] = {"", |
| 343 | "{", |
no test coverage detected