Repository navigation
Test: the det COPY fallback search is never reached for an estate member (Part of #8412) - #8415
Merged
Merged
Conversation
…ber (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
13 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8412 (item [c:e1e3afb8]).
Checklist: done [c:e1e3afb8]
What
The item asked whether
det/source.py_search_member(tries"", .cpy, .copy, .dcl, .cbl, .cob) must agree with the engine (which also takes .cobol, .pco, .cut and body-judged .inc), or be proven never reached for an estate member. Chosen: prove it, by test, with no engine change. With an engine,resolveasksEngineCopies.memberfirst, so an engine-resolved member of any extension never reaches the fallback. When the engine resolved nothing and the fallback finds an estate file,EngineCopies.unresolvedrefusesCopyUnresolved. Without an engine the extra extensions giveCopyNotFound, a refusal, never a wrong splice.New test
tests/cobol_mainframe/test_copy_fallback_never_reached_8412.py(one real scan of an authored estate, invented names FAKEG.cobol, FAKEH.pco, FAKEI.cut, FAKEJ.inc):program_linesexpands them with_search_memberpatched to raise;CopyUnresolved;CopyNotFound.Burned estates only; no blind-draw candidate was read, listed or counted.
Class / Sibling gaps
Class: members the engine resolves for a COPY that the translator's own search cannot find (extension and body-judgement differences). Members: .cobol, .pco, .cut (engine-resolved: handled, tested); .inc body-judged (handled, tested with a COBOL body). The reverse direction (translator extensions not scanned by the engine) is #8074's
test_copy_extension_parity_8074.py. Sibling gaps: none for the engine path. A no-engine run (a bare directory list) still cannot find .cobol/.pco/.cut/.inc members; it refuses by name, so it is a limitation not a wrong result, and no burned estate uses that path.Tests: the new file,
test_copy_extension_parity_8074.pyandtests/test_source_reads.pypass (14 passed). Not run: pr_gates (test-only change).🤖 Generated with Claude Code