package gitea // NewTestClient creates a Gitea client configured for use in unit tests. // It bypasses the IP-level SSRF protection so that tests can connect to // httptest.Server instances (which listen on 127.0.0.1). // // This function MUST only be called from _test.go files. // Production code must use NewClient which uses the safe dialer. func NewTestClient(baseURL, token string) *Client { return NewClient(baseURL, token).WithUnsafeDialer() }