One of the functions in my library takes an argument of type [`Dir] Eio.Path.t
. I want to be able to test this. I am struggling to come up with a way to craft this type by hand from a string.
I could not find an alternative in Eio_mock
or a way to handcraft a path in Eio.Path
or Eio.Fs
.
Eio.Stdenv.fs env / the_string
?
Ah, that’s what fs
meant in the documentation. Thanks! I kept trying to work with Eio.Fs
instead.