Why mock it?  A mock integrator already exists in this namespace but it has
a different functionality.  Here I want to actually integrate, just using the
divergent Hamiltonian.

It probably could be mocked if you messed around with the divergent_hamiltonian
enough, although the test might become more complicated.

On Mar 13, 2014, at 7:07 AM, Daniel Lee <notifications@github.com> wrote:

> In src/test/unit/mcmc/hmc/base_nuts_test.cpp:
> 
> > @@ -1,5 +1,6 @@
> >  #include <test/unit/mcmc/hmc/mock_hmc.hpp>
> >  #include <stan/mcmc/hmc/nuts/base_nuts.hpp>
> > +#include <stan/mcmc/hmc/integrators/expl_leapfrog.hpp>
> Is there a good reason we need to pull in expl_leapfrog? Is this not easy enough to mock?
> 
> —
> Reply to this email directly or view it on GitHub.
>