// newServicePlans returns new serviceplans.
newServicePlans returns new serviceplans.
// newServicePlans returns new serviceplans .
func newServicePlans(count uint, useDifferentClasses bool) []*servicecatalog.ServicePlan {
	classname := "test-serviceclass"
	sp1 := &servicecatalog.ServicePlan{
		ObjectMeta: metav1.ObjectMeta{Name: "bar-id"},
		Spec: servicecatalog.ServicePlanSpec{
			CommonServicePlanSpec: servicecatalog.CommonServicePlanSpec{
				ExternalName: "bar",
				ExternalID:   "12345",
			},
			ServiceClassRef: servicecatalog.LocalObjectReference{
				Name: classname,
			},
		},
	}
	if useDifferentClasses {
		classname = "different-serviceclass"
	}
	sp2 := &servicecatalog.ServicePlan{
		ObjectMeta: metav1.ObjectMeta{Name: "baz-id"},
		Spec: servicecatalog.ServicePlanSpec{
			CommonServicePlanSpec: servicecatalog.CommonServicePlanSpec{
				ExternalName: "baz",
				ExternalID:   "23456",
			},
			ServiceClassRef: servicecatalog.LocalObjectReference{
				Name: classname,
			},
		},
	}
	if 0 == count {
		return []*servicecatalog.ServicePlan{}
	}
	if 1 == count {
		return []*servicecatalog.ServicePlan{sp1}
	}
	if 2 == count {
		return []*servicecatalog.ServicePlan{sp1, sp2}
	}
	return []*servicecatalog.ServicePlan{}
}
func newServicePlans ( count uint , useDifferentClasses bool ) [ ] * servicecatalog . ServicePlan { classname := " " sp1 := & servicecatalog . ServicePlan { ObjectMeta : metav1 . ObjectMeta { Name : " " } , Spec : servicecatalog . ServicePlanSpec { CommonServicePlanSpec : servicecatalog . CommonServicePlanSpec { ExternalName : " " , ExternalID : " " , } , ServiceClassRef : servicecatalog . LocalObjectReference { Name : classname , } , } , } if useDifferentClasses { classname = " " } sp2 := & servicecatalog . ServicePlan { ObjectMeta : metav1 . ObjectMeta { Name : " " } , Spec : servicecatalog . ServicePlanSpec { CommonServicePlanSpec : servicecatalog . CommonServicePlanSpec { ExternalName : " " , ExternalID : " " , } , ServiceClassRef : servicecatalog . LocalObjectReference { Name : classname , } , } , } if 0 == count { return [ ] * servicecatalog . ServicePlan { } } if 1 == count { return [ ] * servicecatalog . ServicePlan { sp1 } } if 2 == count { return [ ] * servicecatalog . ServicePlan { sp1 , sp2 } } return [ ] * servicecatalog . ServicePlan { } }
newServicePlans returns new serviceplans.
newServicePlans returns new serviceplans .