Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify non compliant decoration test (#851)
This modifies a test that was added in a previous commit which highlights a problematic transitive decoration of a parent-module provided-type. Specifically, consider the following case: Parent Module provides type A, and type B which depends on type A. Child Module decorates type A and invokes something that depends on type B. In such case, the invoked function in child Module should not see a version of type B created with a decorated type A. This is because the constructor for the type B lives outside the scope of the decoration. The decoration can only affect child Scope's providers, and should not affect parent-provided constructor directly. This test case is not compliant with such case, so it should be modified. This also pins Dig dependency to latest commit of Dig's master branch to take in the fix made in uber-go/dig#325.
- Loading branch information
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters