Closed thymusvulgaris closed 3 months ago
I haven't included the following test.
+++ b/test/plug/adapters/test/conn_test.exs
@@ -7,6 +7,7 @@ defmodule Plug.Adapters.Test.ConnTest do
conn = conn(:get, "/", "abcdefghij")
{adapter, state} = conn.adapter
+ assert {:ok, "abcdefghij", _state} = adapter.read_req_body(state)
A binary larger than the default length would make for a better test, but that would be a very large binary.
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
Add Plug.Adapters.Test.Conn.conn/4 test cases for params that have a struct or function value.
Add test that asserts Plug.Adapters.Test.Conn.conn/4 writes a message to stderr when the URI path does not start with forward slash.
Add test that asserts Plug.Adapters.Test.Conn.push/3 sends message including path and headers.