Summary
Functions
Transforms a module file path (without extension) into the corresponding test file path (also without extension).
Functions
Transforms a module file path (without extension) into the corresponding test file path (also without extension).
The transformation replaces a leading lib/ or test/ segment with test/,
or prepends test/ otherwise, then appends _test to the last segment.
iex> Modkit.Mount.path_as_test("lib/my_app/foo")
"test/my_app/foo_test"
iex> Modkit.Mount.path_as_test("dev/my_app/foo")
"test/dev/my_app/foo_test"
iex> Modkit.Mount.path_as_test("test/support/my_app/foo")
"test/support/my_app/foo_test"