Allow dependency injection on the PackageSupplier
In order to make the `Dub` class properly unittest-able,
we need to be able to use a non-default `PackageSupplier`,
in particular one that would not hit the registry or the filesystem.
This can be achieved by moving a free function to a method and having
derived class override it, as shown in this commit.
1 parent 66515b7 commit e02314c677e19801e746f3e5b6742223f8be4266
@Mathias Lang Mathias Lang authored on 26 Dec 2023
Nicholas Wilson committed on 27 Dec 2023
Showing 2 changed files
View
source/dub/dub.d
View
source/dub/test/base.d