Registry / testing / iris-contrib-httpexpect-v2

iris-contrib-httpexpect-v2

JSON →
library2.15.2gogounverified

Package httpexpect helps with end-to-end HTTP and REST API testing.

go get github.com/iris-contrib/httpexpect/v2
INSTALL
IMPORT
SIG · IRIS-CONTRIB-HTTPE
I
iris-contrib-httpexpect-v2
testinggov2.15.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpexpect
github.com/iris-contrib/httpexpect/v2

Tests a simple HTTP endpoint using httpexpect.

package main import ( "net/http/httptest" "testing" "github.com/iris-contrib/httpexpect/v2" ) func TestAPI(t *testing.T) { handler := func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(`{"message":"ok"}`)) } server := httptest.NewServer(http.HandlerFunc(handler)) defer server.Close() e := httpexpect.New(t, server.URL) e.GET("/").Expect().Status(200).JSON().Object().ValueEqual("message", "ok") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.15.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
iris-contrib-httpexpect-v2 — go get iris-contrib-httpexpect-v2 · libregistry