Skip to content

MissingDeps tests do not cover depfile‑based dependency loading#2742

Open
moritzx22 wants to merge 2 commits intoninja-build:masterfrom
moritzx22:missingDepsTestCoverage
Open

MissingDeps tests do not cover depfile‑based dependency loading#2742
moritzx22 wants to merge 2 commits intoninja-build:masterfrom
moritzx22:missingDepsTestCoverage

Conversation

@moritzx22
Copy link
Copy Markdown
Contributor

The current unit tests for missingdeps do not cover the code path that handles implicit dependencies loaded from depfiles. In particular, the logic inside NodeStoringImplicitDepLoader (see lines 30–48 in missing_deps.cc) is never exercised because none of the existing tests create or load an actual depfile.

This PR adds new unit tests that generate a real depfile and trigger the depfile‑based dependency loading path.

These additions close the coverage gap and ensure that future changes to depfile handling or missing‑deps logic are properly validated.

…ncy loading

Adds unit tests that trigger the depfile‑loading path in the missingdeps logic.
The new tests close the coverage gap around the dep‑loading algorithm in
'NodeStoringImplicitDepLoader'.
@moritzx22 moritzx22 force-pushed the missingDepsTestCoverage branch from 364c7c6 to 3eb8988 Compare March 14, 2026 18:33
@jhasse jhasse added this to the 1.14.0 milestone Mar 15, 2026
@jhasse jhasse added the bug label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants