Skip to content

Docs note and checkModules test for qualified vs stacked parameters#2449

Open
ChristophyBarth wants to merge 1 commit into
InsertKoinIO:mainfrom
ChristophyBarth:followup/qualified-params-docs-tests
Open

Docs note and checkModules test for qualified vs stacked parameters#2449
ChristophyBarth wants to merge 1 commit into
InsertKoinIO:mainfrom
ChristophyBarth:followup/qualified-params-docs-tests

Conversation

@ChristophyBarth

Copy link
Copy Markdown

Follow-up to 4fae618 (#2370, #2408, also reported in #2406 and #2435), which made qualified requests resolve from definitions instead of stacked parameters. Replaces #2440, which made the same resolver change independently.

This PR carries over the two pieces that are not yet on main:

  • Docs: a note in injection-parameters.md clarifying that graph resolution of injected parameters only applies to unqualified requests; get(named(...)) always resolves from module definitions.
  • Test: a regression test in CheckModulesTest covering the checkKoinModules path, where a get(named("env")) dependency used to receive the MockParameter default "" instead of the named single. The existing tests from 4fae618 cover direct resolution but not the check/verify path.

Verified with :core:koin-test:jvmTest --tests CheckModulesTest on current main.

Follow-up to 4fae618 (InsertKoinIO#2370, InsertKoinIO#2408, also reported as InsertKoinIO#2406, InsertKoinIO#2435), which
made qualified requests resolve from definitions instead of stacked
parameters.

- docs: note in injection-parameters.md that parameter graph resolution
  only applies to unqualified requests
- koin-test: regression test that checkKoinModules resolves a named String
  single from the module instead of handing get(named(...)) the
  MockParameter default
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