Skip to content

Add golden tests for ComponentHjarGenerator. - #5371

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_1026656046
Nov 20, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_1026656046

Conversation

@copybara-service

Copy link
Copy Markdown

Add golden tests for ComponentHjarGenerator.

HjarTest only verified that hjar compilation succeeded without asserting on the generated source. Adding baseline golden files locks down the exact generated Dagger<Component> header stub before removing the SourceFileHjarGenerator wrapper in a follow-up change.

Expand HjarTest to cover default builders, module setters, explicit @Component.Builder and @Component.Factory, generatedClassExtendsComponent overrides across primitive, reference, and void return types, abstract component super(...) constructor calls, and @ProductionComponent.

RELNOTES=N/A

`HjarTest` only verified that hjar compilation succeeded without asserting on the generated source. Adding baseline golden files locks down the exact generated `Dagger<Component>` header stub before removing the `SourceFileHjarGenerator` wrapper in a follow-up change.

Expand `HjarTest` to cover default builders, module setters, explicit `@Component.Builder` and `@Component.Factory`, `generatedClassExtendsComponent` overrides across primitive, reference, and `void` return types, abstract component `super(...)` constructor calls, and `@ProductionComponent`.

RELNOTES=N/A
PiperOrigin-RevId: 1026757741
@copybara-service
copybara-service Bot merged commit e1b33d0 into master Nov 20, 2026
3 checks passed
@copybara-service
copybara-service Bot deleted the test_1026656046 branch November 20, 2026 22:34
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