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

Creates cycle indirection scenarios for tests#200

Open
gfreivasc wants to merge 2 commits intoJakeWharton:masterfrom
gfreivasc:gabrielfv/staging/indirection-tests
Open

Creates cycle indirection scenarios for tests#200
gfreivasc wants to merge 2 commits intoJakeWharton:masterfrom
gfreivasc:gabrielfv/staging/indirection-tests

Conversation

@gfreivasc
Copy link
Copy Markdown

Creates IndirectionCycle with regular provided dependencies,BindsIndirectionCycle for bound dependencies indirection, and MultibindProviderMapIndirectionCycle for the scenario pinpointed in issue #175 and resolved by #198.

@gfreivasc gfreivasc force-pushed the gabrielfv/staging/indirection-tests branch from a20b5e0 to a8a8415 Compare August 20, 2020 15:31
Creates `IndirectionCycle` with regular provided dependencies,
`BindsIndirectionCycle` for bound dependencies indirection, and
`MultibindProviderMapIndirectionCycle` for the scenario pinpointed in
issue JakeWharton#175 and resolved by JakeWharton#198.
@gfreivasc gfreivasc force-pushed the gabrielfv/staging/indirection-tests branch from a8a8415 to 7e778f4 Compare August 20, 2020 15:40
@TWiStErRob
Copy link
Copy Markdown
Contributor

There's a cycle test in upstream as well:

// TODO reflect-compiler bug! Not generating builder method.
exclude 'dagger/functional/builder/BuilderTest.java'
exclude 'dagger/functional/cycle/DoubleCheckCycleTest.java'

But I guess this will never execute because #4 (comment)

@TWiStErRob
Copy link
Copy Markdown
Contributor

What do you think about testing cycles and checking that the instances actually end up the same when scoped?

@gfreivasc
Copy link
Copy Markdown
Author

Quickly looking at it, it seems that perhaps some of these tests are okay to run. I'll take a look, since upstream currently covers two of the three tests.

@gfreivasc
Copy link
Copy Markdown
Author

I think the test scenario and tests suffice, right?

@gfreivasc gfreivasc force-pushed the gabrielfv/staging/indirection-tests branch from aa56017 to 80de396 Compare August 20, 2020 19:10
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.

3 participants