# `Modkit.Mount`
[🔗](https://github.com/lud/modkit/blob/main/lib/modkit/mount.ex#L1)

# `as_test`

# `define`

# `define!`

# `do_resolve`

# `path_as_test`

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"

# `preferred_path`

# `prefix_of?`

# `resolve`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
