Mutare.Plug.Halt (mutare_plug v0.1.0)

Copy Markdown View Source

:plug_halt — removes Plug.Conn.halt/1. A plug that fails to halt lets the request flow on to the action it meant to block, so a surviving :plug_halt mutant means no test depends on this plug halting.

halt(conn)        # → conn
conn |> halt()    # → conn |> Function.identity()

Matches halt written directly (Plug.Conn.halt(conn)), aliased, or bare-imported (halt(conn), the form use Plug.Builder / use Plug.Router — or Phoenix's use MyAppWeb, :controller — produces), and only Plug.Conn.halt/1; a halt at any other arity is a different call and is left untouched.