MCPcopy Create free account
hub / github.com/cloudbase/garm / TestGithubAPIEndpointIsSet

Function TestGithubAPIEndpointIsSet

config/config_test.go:820–825  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

818}
819
820func TestGithubAPIEndpointIsSet(t *testing.T) {
821 cfg := getDefaultGithubConfig()
822 cfg[0].APIBaseURL = "https://github.example.com/api/v3"
823
824 require.Equal(t, "https://github.example.com/api/v3", cfg[0].APIEndpoint())
825}
826
827func TestUploadEndpoint(t *testing.T) {
828 cfg := getDefaultGithubConfig()

Callers

nothing calls this directly

Calls 2

getDefaultGithubConfigFunction · 0.85
APIEndpointMethod · 0.80

Tested by

no test coverage detected