Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectFair (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    		}
    
    		if gotFair != expectFair {
    			uss.t.Errorf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v but the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		} else {
    			uss.t.Logf("%s client %d last=%v expectFair=%v margin=%v got an Average of %v and the expected average was %v", uss.name, i, last, expectFair, margin, averages[i], expectedAverage)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen_test.cc

    }
    
    TEST_F(ParseCppClassTest, ParseFail) {
      ExpectFail("");
      ExpectFail("::");
      ExpectFail("0");
      ExpectFail("a.b");
      ExpectFail("a:b");
      ExpectFail(":foo::bar");
      ExpectFail("good::.bad");
      ExpectFail("good:::bad");
      ExpectFail("good::bad::");
      ExpectFail("good::::bad");
      ExpectFail("::::bad");
      ExpectFail("good:: bad");
      ExpectFail("good::0bad");
    }
    
    static void CompareWithGoldenFile(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 01 02:13:40 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pkg/version/cobra_test.go

    			v.cmd.SetArgs(strings.Split(v.args, " "))
    			var out bytes.Buffer
    			v.cmd.SetOut(&out)
    			v.cmd.SetErr(&out)
    			err := v.cmd.Execute()
    
    			if !v.expectFail && err != nil {
    				t.Errorf("Got %v, expecting success", err)
    			}
    			if v.expectFail && err == nil {
    				t.Errorf("Expected failure, got success")
    			}
    		})
    	}
    }
    
    var meshEmptyVersion = MeshInfo{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 29 14:15:26 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. security/pkg/k8s/chiron/utils_test.go

    		secretNameSpace string
    		expectFail      bool
    	}{
    		"submitting a CSR without duplicate should succeed": {
    			gracePeriodRatio: 0.6,
    			k8sCaCertFile:    "./test-data/example-ca-cert.pem",
    			dnsNames:         []string{"foo"},
    			secretNames:      []string{"istio.webhook.foo"},
    			secretName:       "mock-secret",
    			secretNameSpace:  "mock-secret-namespace",
    			expectFail:       false,
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. pkg/version/version_test.go

    			false,
    			BuildInfo{},
    		},
    	}
    
    	for _, v := range cases {
    		t.Run(v.name, func(t *testing.T) {
    			got, err := NewBuildInfoFromOldString(v.in)
    			if v.expectFail && err == nil {
    				t.Errorf("Expected failure, got success")
    			}
    			if !v.expectFail && err != nil {
    				t.Errorf("Got %v, expected success", err)
    			}
    
    			if got != v.want {
    				t.Errorf("Got %v, expected %v", got, v.want)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    	existingNode     *v1.Node
    	existingCSINode  *storage.CSINode
    	inputNodeID      string
    	inputTopology    map[string]string
    	inputVolumeLimit int64
    	expectedNode     *v1.Node
    	expectedCSINode  *storage.CSINode
    	expectFail       bool
    	hasModified      bool
    }
    
    type nodeIDMap map[string]string
    type topologyKeyMap map[string][]string
    type labelMap map[string]string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  7. src/cmd/internal/testdir/testdir_test.go

    	testCommon
    	*testing.T
    	// dir and goFile identify the test case.
    	// For example, "fixedbugs", "bug000.go".
    	dir, goFile string
    }
    
    // expectFail reports whether the (overall) test recipe is
    // expected to fail under the current build+test configuration.
    func (t test) expectFail() bool {
    	failureSets := []map[string]bool{types2Failures}
    
    	// Note: gccgo supports more 32-bit architectures than this, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top