Tests: Use TestDub FSEntry constructor for more accurate tests
The previous approach added Packages in the PackageManager directly,
completely sidestepping the scanning the PackageManager does,
which is a behavior we absolutely want to test.

By setting up the filesystem before we instantiate our `TestDub` instance,
we can remove a bunch of exceptions / overrides, and get a much closer
behavior to the final product.
1 parent 3076f11 commit 85a78c05e8a6913e54f8194809254b904d2755f5
@Mathias Lang Mathias Lang authored on 12 Feb 2024
Mathias LANG committed on 15 Feb 2024
Showing 4 changed files
View
source/dub/test/base.d
View
source/dub/test/dependencies.d
View
source/dub/test/other.d
View
source/dub/test/subpackages.d