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

Function TestUploadEndpointIsSet

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

Source from the content-addressed store, hash-verified

831}
832
833func TestUploadEndpointIsSet(t *testing.T) {
834 cfg := getDefaultGithubConfig()
835 cfg[0].UploadBaseURL = "https://github.example.com/uploads"
836
837 require.Equal(t, "https://github.example.com/uploads", cfg[0].UploadEndpoint())
838}
839
840func TestGithubBaseURL(t *testing.T) {
841 cfg := getDefaultGithubConfig()

Callers

nothing calls this directly

Calls 2

getDefaultGithubConfigFunction · 0.85
UploadEndpointMethod · 0.80

Tested by

no test coverage detected