From 33a77211625ae3083eda6b1a96f572f4894ca5ad Mon Sep 17 00:00:00 2001 From: Joe Lombrozo Date: Mon, 9 Dec 2024 14:58:22 -0500 Subject: [PATCH] the useful parts of this function are already tested in pkg/repo_test.go --- pkg/events/check_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/events/check_test.go b/pkg/events/check_test.go index 5dcacb42..4f60c8dd 100644 --- a/pkg/events/check_test.go +++ b/pkg/events/check_test.go @@ -325,14 +325,3 @@ func MockInitMatcherFn() MatcherFn { return nil } } - -func TestMergeIntoTarget(t *testing.T) { - ctx := context.Background() - event := &CheckEvent{} - repo := &git.Repo{CloneURL: "git@github.com:zapier/kubechecks.git"} - - err := event.mergeIntoTarget(ctx, repo, "sample-branch") - require.NoError(t, err) - - assert.Equal(t, map[string]*git.Repo{"git|||origin/sample-branch": repo}, event.clonedRepos) -}