MCPcopy Create free account
hub / github.com/devfile/api / getRemotes

Function getRemotes

test/v200/utils/common/project_test_utils.go:81–89  ·  view source on GitHub ↗

getRemotes creates and returns a map of remotes

(numRemotes int)

Source from the content-addressed store, hash-verified

79
80// getRemotes creates and returns a map of remotes
81func getRemotes(numRemotes int) map[string]string {
82 remotes := make(map[string]string)
83 for i := 0; i < numRemotes; i++ {
84 key := GetRandomUniqueString(GetRandomNumber(6, 12), false)
85 remotes[key] = GetRandomUniqueString(GetRandomNumber(6, 12), false)
86 LogInfoMessage(fmt.Sprintf("Set remote key= %s, value= %s", key, remotes[key]))
87 }
88 return remotes
89}
90
91// AddProject adds a project of the specified type, with random attributes, to the devfile schema
92func (testDevfile *TestDevfile) AddProject(projectType schema.ProjectSourceType) string {

Callers 2

createParentGitProjectFunction · 0.85
createGitProjectFunction · 0.85

Calls 3

GetRandomUniqueStringFunction · 0.85
GetRandomNumberFunction · 0.85
LogInfoMessageFunction · 0.85

Tested by

no test coverage detected