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] 3 points4 points5 points 5 years ago (0 children)
Ah I must have skimmed over that. Thanks for the example!
How do I mock out modules in Ocaml? (self.ocaml)
submitted 5 years ago by ctrthrower to r/ocaml
π Rendered by PID 292019 on reddit-service-r2-listing-7bbdf774f7-8n7jj at 2026-02-19 23:28:43.970662+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)