Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

refactor: drop the output-neutral pad on the executed-literal recursion

mateo-berri15d8f0b43ca6
diff --git a/tests/code_coverage_tests/check_migrations_no_data_rewrites.py b/tests/code_coverage_tests/check_migrations_no_data_rewrites.py
index 39fdfe716cf..b3f60febaba 100644
--- a/tests/code_coverage_tests/check_migrations_no_data_rewrites.py
+++ b/tests/code_coverage_tests/check_migrations_no_data_rewrites.py
@@ -633,8 +633,7 @@ def scan_region(
always counted against the whole document, so a statement nested in a dollar-quoted body
reports its real file line and lines up with the markers read from that file. A single-quoted
literal that `DO` or `EXECUTE` runs as SQL is undoubled before it is scanned, so a `--` or `/*`
- in one of its nested strings blanks nothing and the statement after it stays visible, and it is
- padded back to its span so the offsets still land."""
+ in one of its nested strings blanks nothing and the statement after it stays visible."""
masked, bodies, literals = mask(region)
executed = executed_names(masked)
runnable = executed_literals(masked, literals, executed)
@@ -649,7 +648,7 @@ def scan_region(
if base <= start and end <= commands_end:
yield from scan_region(
document,
- undouble(region[start:end]).ljust(end - start),
+ undouble(region[start:end]),
migration,
markers,
offset + start,