<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jun 11, 2015 at 11:09 PM, Andrei Alexandrescu via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just ran into this with Phobos: <a href="https://github.com/D-Programming-Language/phobos/pull/3403" rel="noreferrer" target="_blank">https://github.com/D-Programming-Language/phobos/pull/3403</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><div><br></div><div>If unittest-only artifacts are not constrained to just unittest builds, does this not make them open to be not unittest-only?</div><div><br></div><div>That is to say, if there is a method or whatever that is just for tests, without marking it 'version(unittest)' how do you ensure it is not actually used in the regular, shipped code?</div><div><br></div><div>Not sure best way to solve the across-module problem and still keep test code restricted to tests... maybe instead put the shared test code in its own module, and import with version(unittest).</div><div><br></div></div></div></div>