Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
update yurtingress_controller_test.go (#111)
Browse files Browse the repository at this point in the history
* modify

* update yurtingress_controller_test.go

* update yurtingress_controller_test.go

* update yurtingress_controller_test.go

* update yurtingress_controller_test.go

* fix

* fix

Co-authored-by: manyi <[email protected]>
  • Loading branch information
rudolf-chy and manyi authored Aug 25, 2022
1 parent 90d5293 commit 0e8bf4d
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,46 @@ const (
succeed = "\u2713"
)

//func TestNewReconciler(t *testing.T) {
// scheme := runtime.NewScheme()
// alpha1.AddToScheme(scheme)
// cfg, _ := config.GetConfig()
// mgr, _ := manager.New(cfg, manager.Options{})
//
// tests := []struct {
// name string
// mgr manager.Manager
// expect *YurtIngressReconciler
// }{
// {
// "test",
//
// mgr,
// &YurtIngressReconciler{
// //Client: fake.NewClientBuilder().WithScheme(scheme).Build(),
// //Scheme: scheme,
// //recorder: record.NewFakeRecorder(1),
// Client: mgr.GetClient(),
// Scheme: mgr.GetScheme(),
// recorder: mgr.GetEventRecorderFor(controllerName),
// },
// },
// }
//
// for _, tt := range tests {
// t.Run(tt.name, func(t *testing.T) {
// t.Parallel()
// t.Logf("\tTestCase: %s", tt.name)
//
// get := newReconciler(tt.mgr)
// if !reflect.DeepEqual(get, tt.expect) {
// t.Fatalf("\t%s\texpect %v, but get %v", failed, tt.expect, get)
// }
// t.Logf("\t%s\texpect %v, get %v", succeed, tt.expect, get)
// })
// }
//}

func TestIsStrArrayEqual(t *testing.T) {
tests := []struct {
name string
Expand Down

0 comments on commit 0e8bf4d

Please sign in to comment.