Skip to content

Commit

Permalink
Trivial: Move TestDub behind a version (unittest)
Browse files Browse the repository at this point in the history
As it should not be compiled in the final binary for releases,
it's just a class to help with unittests.
  • Loading branch information
Geod24 authored and dlang-bot committed Dec 22, 2023
1 parent 21e999e commit deae0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dub/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ private class DependencyVersionResolver : DependencyResolver!(Dependency, Depend
* nor should it do any file IO, to make it usable and reliable in unittests.
* Currently it reads environment variables but does not read the configuration.
*/
package final class TestDub : Dub
version(unittest) package final class TestDub : Dub
{
/// Forward to base constructor
public this (string root = ".", PackageSupplier[] extras = null,
Expand Down

0 comments on commit deae0b6

Please sign in to comment.