You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(rust): replace .expect("TODO") in codegen/parser.rs (2 prod + 6 tests)
8 .expect("TODO: handle error") sites in src/codegen/parser.rs cleared.
Prod (2 sites in parse_create_table):
Line 143: upper.find("IF NOT EXISTS") — guarded by the surrounding
`if upper.contains("IF NOT EXISTS")` (line 141), so find returns Some.
Line 147: upper.find("TABLE") — parse_create_table is only invoked
when upper.starts_with("CREATE TABLE") at parse_sql_schema:100,
so "TABLE" is always present.
Both expect messages document the invariant — SPARK proof candidates
per estate-wide direction.
Tests (6 sites): all parse_sql_schema(...) calls inside #[cfg(test)]
mod revert to .unwrap().
cargo test --lib: 26/26 green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments