MCPcopy Create free account
hub / github.com/diillson/chatcli / newSourceRepo

Function newSourceRepo

operator/controllers/source_controller_test.go:288–296  ·  view source on GitHub ↗
(url, branch string)

Source from the content-addressed store, hash-verified

286}
287
288func newSourceRepo(url, branch string) *platformv1alpha1.SourceRepository {
289 return &platformv1alpha1.SourceRepository{
290 ObjectMeta: metav1.ObjectMeta{Name: "test-repo", Namespace: "default"},
291 Spec: platformv1alpha1.SourceRepositorySpec{
292 URL: url,
293 Branch: branch,
294 },
295 }
296}
297
298func TestGetRecentCommits(t *testing.T) {
299 origin := newLocalGitRepo(t)

Callers 3

TestPullRepoFunction · 0.85
TestCloneRepoFunction · 0.85
TestResolveAuth_SSHKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected