MCPcopy Create free account
hub / github.com/BryanMwangi/pine / TestRequest_SetRequestURI

Function TestRequest_SetRequestURI

client_test.go:71–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestRequest_SetRequestURI(t *testing.T) {
72 client := NewClient()
73 req := client.Request()
74 uri := "https://example.com/api"
75
76 req.SetRequestURI(uri)
77 if req.uri != uri {
78 t.Fatalf("expected uri to be %s, got %s", uri, req.uri)
79 }
80}
81
82func TestRequest_SetMethod(t *testing.T) {
83 client := NewClient()

Callers

nothing calls this directly

Calls 3

RequestMethod · 0.95
NewClientFunction · 0.85
SetRequestURIMethod · 0.80

Tested by

no test coverage detected