Presubmit.Assertions.OTP (presubmit v0.2.2)

Copy Markdown View Source

Assertions over OTP processes and supervision trees, built on Presubmit.Adapters.OtpProcess.

Summary

Functions

Asserts every GenServer, Agent, Task, or Supervisor module the commit adds is started by some supervisor or application in the resulting tree.

Functions

assert_supervised(commit)

@spec assert_supervised(Presubmit.Commit.t()) :: :ok

Asserts every GenServer, Agent, Task, or Supervisor module the commit adds is started by some supervisor or application in the resulting tree.

Processes started dynamically (DynamicSupervisor.start_child, Task.Supervisor, a child list built in a function) have no static child spec; a module that any other module under lib/ names is taken to be started that way and passes.