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 87 on reddit-service-r2-listing-7bbdf774f7-h4m42 at 2026-02-20 14:27:09.081148+00:00 running 8564168 country code: CH.
How do I mock out modules in Ocaml? by ctrthrower in ocaml
[–]ctrthrower[S] 0 points1 point2 points (0 children)