Skip to content
This repository was archived by the owner on Apr 20, 2026. It is now read-only.

fix(mock): use num_sources in populate for source file count#322

Closed
Snezhkko wants to merge 1 commit intofoundry-rs:mainfrom
Snezhkko:feature/fix-mock-populate-num-sources
Closed

fix(mock): use num_sources in populate for source file count#322
Snezhkko wants to merge 1 commit intofoundry-rs:mainfrom
Snezhkko:feature/fix-mock-populate-num-sources

Conversation

@Snezhkko
Copy link
Copy Markdown

The MockProjectGenerator::populate method incorrectly used settings.num_lib_files when adding source files, effectively ignoring settings.num_sources. This change aligns the code with the documented intent: num_sources controls the number of source files, while num_lib_files controls the number of files per library. This prevents silent misconfiguration and matches the semantics used elsewhere in the API and tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants