The text the parser sees: every kept range, concatenated. */
| 1375 | |
| 1376 | /* The text the parser sees: every kept range, concatenated. */ |
| 1377 | static char *kept_text(const char *src, const CBMSqlKeptRanges *k) { |
| 1378 | cov_buf_t b = {NULL, 0, 0}; |
| 1379 | cov_put(&b, "%s", ""); |
| 1380 | for (uint32_t i = 0; i < k->count; i++) { |
| 1381 | cov_put(&b, "%.*s", (int)(k->items[i].end_byte - k->items[i].start_byte), |
| 1382 | src + k->items[i].start_byte); |
| 1383 | } |
| 1384 | return b.s; |
| 1385 | } |
| 1386 | |
| 1387 | TEST(sql_values_scanner_excludes_only_literal_rows_issue1735) { |
| 1388 | /* {source, what the parser sees} — NULL means nothing is excluded. */ |
no test coverage detected