Skip to content

Commit

Permalink
the useful parts of this function are already tested in pkg/repo_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
djeebus committed Dec 9, 2024
1 parent 2cd3ca0 commit 33a7721
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/events/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,14 +325,3 @@ func MockInitMatcherFn() MatcherFn {
return nil
}
}

func TestMergeIntoTarget(t *testing.T) {
ctx := context.Background()
event := &CheckEvent{}
repo := &git.Repo{CloneURL: "[email protected]: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)
}

0 comments on commit 33a7721

Please sign in to comment.