-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
componentsregistry: use structure to store handlers (#1502)
To make it possible to mock registry in DSC reconcileComponents for testing, implement registry as a structure. Make package level wrappers on Add and ForEach methods which operate on the default statically created registry. This allows keep working with the default registry in a real system without extra arguments like before. It's in init()s and in main(). But code under test can accept testing version when needed. Signed-off-by: Yauheni Kaliuta <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
11 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