From deae0b6596231862173fe5252028f4ce3a447472 Mon Sep 17 00:00:00 2001 From: Mathias Lang Date: Thu, 21 Dec 2023 15:46:39 +0100 Subject: [PATCH] Trivial: Move TestDub behind a version (unittest) As it should not be compiled in the final binary for releases, it's just a class to help with unittests. --- source/dub/dub.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dub/dub.d b/source/dub/dub.d index 5db78ee9b..7d509ca3f 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -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,