MCPcopy
hub / github.com/gofiber/fiber / Test_Client_SetBaseURL

Function Test_Client_SetBaseURL

client/client_test.go:805–811  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

803}
804
805func Test_Client_SetBaseURL(t *testing.T) {
806 t.Parallel()
807
808 client := New().SetBaseURL("http://example.com")
809
810 require.Equal(t, "http://example.com", client.BaseURL())
811}
812
813func Test_Client_Invalid_URL(t *testing.T) {
814 t.Parallel()

Callers

nothing calls this directly

Calls 3

SetBaseURLMethod · 0.80
NewFunction · 0.70
BaseURLMethod · 0.65

Tested by

no test coverage detected