Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestYAMLCmpWithIgnore (0.27 sec)

  1. operator/pkg/compare/compare_test.go

    		t.Run(tt.desc, func(t *testing.T) {
    			if got, want := YAMLCmp(tt.a, tt.b), tt.want; !(got == want) {
    				t.Errorf("%s: got:%v, want:%v", tt.desc, got, want)
    			}
    		})
    	}
    }
    
    func TestYAMLCmpWithIgnore(t *testing.T) {
    	tests := []struct {
    		desc string
    		a    string
    		b    string
    		i    []string
    		want any
    	}{
    		{
    			desc: "identical",
    			a: `apiVersion: autoscaling/v2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 21 02:18:20 UTC 2022
    - 33K bytes
    - Viewed (0)
Back to top