How many times the key appears. The duplicate-key corruption this suite * guards against shows up here as 2. */
| 58 | /* How many times the key appears. The duplicate-key corruption this suite |
| 59 | * guards against shows up here as 2. */ |
| 60 | static int imp_key_count(const char *json) { |
| 61 | if (!json) { |
| 62 | return 0; |
| 63 | } |
| 64 | int n = 0; |
| 65 | const char *p = json; |
| 66 | while ((p = strstr(p, "\"importance\":")) != NULL) { |
| 67 | n++; |
| 68 | p += strlen("\"importance\":"); |
| 69 | } |
| 70 | return n; |
| 71 | } |
| 72 | |
| 73 | static void imp_run_pass(cbm_gbuf_t *gb) { |
| 74 | atomic_int cancelled = 0; |
no outgoing calls
no test coverage detected