Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for expectedOut (0.24 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/managedfields/extract_test.go

    			if err != nil {
    				t.Fatalf("Unexpected extract error: %v", err)
    			}
    			if !equality.Semantic.DeepEqual(out, tc.expectedOut) {
    				t.Fatalf("Expected output did not match actual output: %s", cmp.Diff(out, tc.expectedOut))
    			}
    		})
    	}
    }
    
    func applyFieldsEntry(fieldManager string, fieldsJSON string, subresource string) metav1.ManagedFieldsEntry {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 22 22:32:45 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    			expectedOut: []example.Pod{*fooObj, *fooBarObj},
    		},
    		{
    			name:        "NonRecursive on object key (prefix) returns object and no other objects with the same prefix",
    			key:         fooKey,
    			recursive:   false,
    			expectedOut: []example.Pod{*fooObj},
    		},
    		{
    			name:        "Recursive on object key (prefix) doesn't return anything",
    			key:         fooKey,
    			recursive:   true,
    			expectedOut: []example.Pod{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/LoggingIntegrationTest.groovy

            outs.each {String expectedOut ->
                def filters = outs.findAll { other -> other != expectedOut && other.startsWith(expectedOut) }
    
                // Find all locations of the expected string in the output
                List<Integer> matches = []
                int pos = 0;
                while (pos < result.length()) {
                    int match = result.indexOf(expectedOut, pos)
                    if (match < 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint_test.go

    			}
    			defaultFile, err := os.ReadFile(fmt.Sprintf("testdata/waypoint/%s", tt.expectedOutFile))
    			if err != nil {
    				t.Fatal(err)
    			}
    			expectedOut := string(defaultFile)
    			if len(expectedOut) == 0 {
    				t.Fatal("expected output is empty")
    			}
    
    			var out bytes.Buffer
    			rootCmd := Cmd(ctx)
    			rootCmd.SetArgs(tt.args)
    			rootCmd.SetOut(&out)
    			rootCmd.SetErr(&out)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 04 15:53:09 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. operator/pkg/util/yaml_test.go

    				"abc": "f",
    			},
    			expectedOut: `abc: f
    foo: yaml
    `,
    		},
    		{
    			desc:        "expected-err-nil",
    			inVals:      nil,
    			expectedOut: "null\n",
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.desc, func(t *testing.T) {
    			if got := ToYAML(tt.inVals); got != tt.expectedOut {
    				t.Errorf("%s: expected out %v got %s", tt.desc, tt.expectedOut, got)
    			}
    		})
    	}
    }
    
    func TestOverlayTrees(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 17:00:14 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/secret_test.go

    	}
    	defer outFile.Close()
    	expectedOut, err := io.ReadAll(outFile)
    	if err != nil {
    		t.Errorf("error reading test data output file: %v", err)
    	}
    
    	gotOut := &bytes.Buffer{}
    	cw := &ConfigWriter{Stdout: gotOut}
    	err = cw.Prime(configDump)
    	assert.NoError(t, err)
    	err = cw.PrintSecretSummary()
    	assert.NoError(t, err)
    
    	assert.Equal(t, string(expectedOut), gotOut.String())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 06 15:14:48 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go

    		defaultGVK              *schema.GroupVersionKind
    		intoObj                 runtime.Object
    
    		errFunc                     func(error) bool
    		expectedGVKOfSerializedData *schema.GroupVersionKind
    		expectedOut                 runtime.Object
    	}{
    		{
    			name:       "decode v1 unstructured into non-nil v2 unstructured",
    			serializer: &mockSerializer{actual: &v1GVK, obj: v1UnstructuredDecodable},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 08 14:55:24 UTC 2018
    - 10.9K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    			checkBit:    1,
    			expectedSet: true,
    		},
    		{
    			name:        "Check if bit outside range 0-63 is set",
    			mask:        []int{0, 1},
    			checkBit:    64,
    			expectedSet: false,
    		},
    	}
    	for _, tc := range tcases {
    		mask, _ := NewBitMask(tc.mask...)
    		set := mask.IsSet(tc.checkBit)
    		if set != tc.expectedSet {
    			t.Errorf("Expected value to be %v, got %v", tc.expectedSet, set)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  9. pkg/kubelet/util/queue/work_queue_test.go

    }
    
    func compareResults(t *testing.T, expected, actual []types.UID) {
    	expectedSet := sets.New[string]()
    	for _, u := range expected {
    		expectedSet.Insert(string(u))
    	}
    	actualSet := sets.New[string]()
    	for _, u := range actual {
    		actualSet.Insert(string(u))
    	}
    	if !expectedSet.Equal(actualSet) {
    		t.Errorf("Expected %#v, got %#v", sets.List(expectedSet), sets.List(actualSet))
    	}
    }
    
    func TestGetWork(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. security/pkg/pki/util/san_test.go

    	testCases := map[string]struct {
    		hosts       string
    		expectedExt *pkix.Extension
    	}{
    		"URI host": {
    			hosts:       "spiffe://test.domain.com/ns/default/sa/default",
    			expectedExt: getSANExtension([]Identity{uriIdentity}, t),
    		},
    		"IP host": {
    			hosts:       "10.0.0.1",
    			expectedExt: getSANExtension([]Identity{ipIdentity}, t),
    		},
    		"DNS host": {
    			hosts:       "test.domain.com",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top