View Source Phy.Mix.Project behaviour (phy v0.1.1)

This module wraps access to Mix.Project, allowing for easier mocking elsewhere in the project. While the rest of the project uses Mox, this wrapper uses dependency injection as its testing/mocking approach.

Summary

Callbacks

@callback app() :: atom()
@callback app(mix_project :: Mix.Project) :: atom()
@callback config() :: map()
@callback config(mix_project :: Mix.Project) :: map()
@callback module() :: String.t()
@callback module(mix_project :: Mix.Project) :: String.t()
@callback web_module() :: String.t()
@callback web_module(mix_project :: Mix.Project) :: String.t()

Functions

Link to this function

app(mix_project \\ Mix.Project)

View Source
Link to this function

config(mix_project \\ Mix.Project)

View Source
Link to this function

module(mix_project \\ Mix.Project)

View Source
Link to this function

web_module(mix_project \\ Mix.Project)

View Source