timflannagan/rukpak

Add test cases.

github-actions opened this issue · 1 comments

// TODO: Add test cases.

package util

import (
	"reflect"
	"testing"

	rukpakv1alpha1 "github.com/operator-framework/rukpak/api/v1alpha1"
)

func TestCheckExistingBundlesMatchesTemplate(t *testing.T) {
	type args struct {
		existingBundles       []*rukpakv1alpha1.Bundle
		desiredBundleTemplate *rukpakv1alpha1.BundleTemplate
	}
	tests := []struct {
		name string
		args args
		want *rukpakv1alpha1.Bundle
	}{
		// TODO: Add test cases.
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if got := CheckExistingBundlesMatchesTemplate(tt.args.existingBundles, tt.args.desiredBundleTemplate); !reflect.DeepEqual(got, tt.want) {
				t.Errorf("CheckExistingBundlesMatchesTemplate() = %v, want %v", got, tt.want)
			}
		})
	}
}

This issue has become stale because it has been open 60 days with no activity. The maintainers of this repo will remove this label during issue triage or it will be removed automatically after an update. Adding the lifecycle/frozen label will cause this issue to ignore lifecycle events.