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. |
---|
|
source/dub/dub.d |
---|
source/dub/test/base.d |
---|