MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestCall_Fail_DoRequest

Function TestCall_Fail_DoRequest

internal/request/request_test.go:92–101  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestCall_Fail_DoRequest(t *testing.T) {
93 // Create a request with an invalid URL
94 req, err := http.NewRequest("GET", "http://invalid-url", nil)
95 assert.NoError(t, err)
96
97 var response map[string]string
98 resp, err := request.Call(req, &response)
99 assert.Error(t, err)
100 assert.Nil(t, resp)
101}
102
103func TestBasicAuth(t *testing.T) {
104 username := "user"

Callers

nothing calls this directly

Calls 2

CallFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected