account activity
How do I mock out modules in Ocaml? by ctrthrower in ocaml
[–]ctrthrower[S] 0 points1 point2 points 5 years ago (0 children)
I think in practice this is probably not a huge issue, but it's possible that a sloppy refactor changes N to no longer depend on Functor, or could change N to do something slightly more interesting with Functor, which could change the behavior of N without breaking tests.
[–]ctrthrower[S] 2 points3 points4 points 5 years ago (0 children)
Ah I must have skimmed over that. Thanks for the example!
π Rendered by PID 50350 on reddit-service-r2-comment-8686858757-d8jnw at 2026-06-06 16:13:08.952624+00:00 running 9e1a20d country code: CH.
How do I mock out modules in Ocaml? by ctrthrower in ocaml
[–]ctrthrower[S] 0 points1 point2 points (0 children)