Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 4,385 for expected_ (0.14 sec)

  1. pkg/api/storage/util_test.go

    			actual := sets.New[string](GetWarningsForStorageClass(tc.template)...)
    			expected := sets.New[string](tc.expected...)
    			for _, missing := range sets.List[string](expected.Difference(actual)) {
    				t.Errorf("missing: %s", missing)
    			}
    			for _, extra := range sets.List[string](actual.Difference(expected)) {
    				t.Errorf("extra: %s", extra)
    			}
    		})
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue33386.go

    	}()             // ERROR "expected expression|expected operand"
    }
    
    func _() {
    	defer func() { // no error here about deferred function
    		1 +    // GCCGO_ERROR "value computed is not used"
    	}()            // ERROR "expected expression|expected operand"
    }
    
    func _() {
    	_ = (1 +)             // ERROR "expected expression|expected operand"
    	_ = a[2 +]            // ERROR "expected expression|expected operand|undefined name"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 01 22:37:04 UTC 2022
    - 953 bytes
    - Viewed (0)
  3. cni/test/install_k8s_test.go

    			expectedPostCleanFile:  testDataDir + "/expected/minikube_cni.conflist.clean",
    			cniConfDirOrderedFiles: []string{"minikube_cni.conf", "calico.conflist"},
    		},
    		{
    			name:                   "Skip non-json file for first valid .conf file",
    			chainedCNIPlugin:       true,
    			resultFileName:         "01-minikube_cni.conflist",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 27 18:01:48 UTC 2022
    - 8K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/runtime/registry_test.go

    			}
    			if !reflect.DeepEqual(test.expected, pluginFooConf) {
    				t.Errorf("DecodeInto(): failed to decode plugin config, expected: %+v, got: %+v",
    					test.expected, pluginFooConf)
    			}
    		})
    	}
    }
    
    // isRegistryEqual compares two registries for equality. This function is used in place of
    // reflect.DeepEqual() and cmp() as they don't compare function values.
    func isRegistryEqual(registryX, registryY Registry) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go

    		printer.PrintObj(table, out)
    		// Validate the expected output matches the printed table.
    		if test.expected != out.String() {
    			t.Errorf("Table printing error: expected (%s), got (%s)", test.expected, out.String())
    		}
    	}
    }
    
    func TestPrintTable_NonTable(t *testing.T) {
    	tests := []struct {
    		object   runtime.Object
    		options  PrintOptions
    		expected string
    	}{
    		// Test non-table default printing for a pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 24.4K bytes
    - Viewed (0)
  6. pkg/config/labels/instance_test.go

    		got.selected = c.left.Match(c.right)
    		if got != c.expected {
    			t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected)
    		}
    	}
    }
    
    func TestString(t *testing.T) {
    	cases := []struct {
    		input    labels.Instance
    		expected string
    	}{
    		{
    			input:    nil,
    			expected: "",
    		},
    		{
    			input:    labels.Instance{},
    			expected: "",
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 06:54:36 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/convert_test.go

    		assert.Equal(t, test.expected, actual)
    	}
    }
    
    func TestConvertToRuntimeAPIImageSpec(t *testing.T) {
    	testCases := []struct {
    		input    kubecontainer.ImageSpec
    		expected *runtimeapi.ImageSpec
    	}{
    		{
    			input: kubecontainer.ImageSpec{
    				Image:          "test",
    				RuntimeHandler: "",
    				Annotations:    nil,
    			},
    			expected: &runtimeapi.ImageSpec{
    				Image:          "test",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. pkg/apis/admissionregistration/v1beta1/defaults_test.go

    			},
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			original := test.original
    			expected := test.expected
    			legacyscheme.Scheme.Default(original)
    			if !apiequality.Semantic.DeepEqual(original, expected) {
    				t.Error(cmp.Diff(expected, original))
    			}
    		})
    	}
    }
    
    func TestDefaultAdmissionPolicy(t *testing.T) {
    	fail := v1beta1.Fail
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 20:24:09 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/conn_test.go

    					return
    				}
    			}
    			defer client.Close()
    			if test.error && err == nil {
    				t.Fatalf("test %d: expected an error", i)
    			}
    
    			<-conn.ready
    			if got, expected := <-selectedProtocol, test.expected; got != expected {
    				t.Fatalf("test %d: unexpected protocol version: got=%s expected=%s", i, got, expected)
    			}
    		}()
    	}
    }
    
    func TestIsWebSocketRequestWithStreamCloseProtocol(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/maven/MavenScope.groovy

            assert dependencyManagement.isEmpty()
        }
    
        void assertDependsOn(String... expected) {
            assertDependencies(dependencies, expected)
        }
    
        private void assertDependencies(Map<String, MavenDependency> dependencies, String... expected) {
            assert dependencies.size() == expected.length
            expected.each {
                String key = StringUtils.substringBefore(it, "@")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top