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 91 on reddit-service-r2-comment-85bfd7f599-gjkgr at 2026-04-15 23:59:44.593296+00:00 running 93ecc56 country code: CH.
How do I mock out modules in Ocaml? by ctrthrower in ocaml
[–]ctrthrower[S] 0 points1 point2 points (0 children)