Registry / testing / drewolson-testflight

drewolson-testflight

JSON →
library1.0.0gogounverified

A Go package for testing HTTP servers by providing a simple test server and client.

go get github.com/drewolson/testflight
INSTALL
IMPORT
SIG · DREWOLSON-TESTFLIG
D
drewolson-testflight
testinggov1.0.0
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.

testflight
✓ github.com/drewolson/testflight

Creates a test HTTP server and makes a request to it.

package main import ( "fmt" "github.com/drewolson/testflight" ) func main() { tf := testflight.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, "hello") })) defer tf.Close() resp, _ := http.Get(tf.URL) fmt.Println(resp.StatusCode) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
drewolson-testflight — go get drewolson-testflight · libregistry