Bureaucrat.Helpers.plug_doc

You're seeing just the function plug_doc, go back to Bureaucrat.Helpers module for more information.
Link to this function

plug_doc(conn, list)

Helper function for adding the phoenix_controller and phoenix_action keys to the private map of the request that's coming from the test modules.

For example:

test "all items - unauthenticated", %{conn: conn} do conn |> get(itempath(conn, :index)) |> plugdoc(module: __MODULE, action: :index) |> doc() |> assert_unauthenticated() end

The request from this test will never touch the controller that's being tested, because it is being piped through a plug that authenticates the user and redirects to another page. In this scenario, we use the plug_doc function.