Skip to content

test(codegen): assert pine_* helper emission for time builtins (KI-35)#43

Merged
luisleo526 merged 1 commit into
mainfrom
test/ki35-route-pine-helpers-emission
Jul 7, 2026
Merged

test(codegen): assert pine_* helper emission for time builtins (KI-35)#43
luisleo526 merged 1 commit into
mainfrom
test/ki35-route-pine-helpers-emission

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

Fixes the CI (Test) failure introduced by #42. The time-builtin emission tests asserted the old inline-lambda internals (localtime_r/gmtime_r/normalize_timezone_for_posix/tm_buf.tm_*) that #42 removed by routing through the engine pine_<field>() helpers. Updated to assert the new pine_<field>(...) call emission; the tz literal / syminfo_.timezone is still present (auditable) as the argument. Test-only; pytest green locally.

🤖 Generated with Claude Code

PR #42 routed hour()/minute()/dayofweek()/... through the engine's cached
pine_<field>() helpers instead of an inline setenv+tzset+localtime_r lambda.
These emission tests still asserted the old inline internals (localtime_r,
gmtime_r, normalize_timezone_for_posix, tm_buf.tm_*), so they broke. Update
them to assert the new pine_<field>(...) call emission — the tz literal /
syminfo_.timezone is still present (auditable) as the call argument, while the
tm-field extraction + Pine offsets now live inside the engine helper. Test-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@luisleo526 luisleo526 merged commit 6b97044 into main Jul 7, 2026
8 checks passed
@luisleo526 luisleo526 deleted the test/ki35-route-pine-helpers-emission branch July 7, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant