- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for expectedMin (0.15 sec)
-
internal/hash/reader.go
var ErrInvalidChecksum = errors.New("invalid checksum") // SetExpectedMin set expected minimum data expected from reader func (r *Reader) SetExpectedMin(expectedMin int64) { r.expectedMin = expectedMin } // SetExpectedMax set expected max data expected from reader func (r *Reader) SetExpectedMax(expectedMax int64) { r.expectedMax = expectedMax }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 18 17:00:54 UTC 2023 - 10.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt
val expectedPin = Pin("*.example.com", certA1Sha256Pin) assertThat(certificatePinner.findMatchingPins("a.example.com")).containsExactly(expectedPin) assertThat(certificatePinner.findMatchingPins(".example.com")).containsExactly(expectedPin) assertThat(certificatePinner.findMatchingPins("example.example.com")) .containsExactly(expectedPin) } @Test fun testGoodPin() {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
// Depends on the correctness of BigIntegerMath.factorial. public void testFactorial() { for (int n = 0; n <= 50; n++) { BigInteger expectedBig = BigIntegerMath.factorial(n); int expectedInt = fitsInInt(expectedBig) ? expectedBig.intValue() : Integer.MAX_VALUE; assertEquals(expectedInt, IntMath.factorial(n)); } } public void testFactorialNegative() { for (int n : NEGATIVE_INTEGER_CANDIDATES) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/kubelet/cm/dra/claiminfo_test.go
for _, test := range []struct { description string claimInfo *ClaimInfo expectedLen int }{ { description: "successfully add pod reference", claimInfo: &ClaimInfo{ ClaimInfoState: state.ClaimInfoState{ PodUIDs: sets.New[string](), }, }, expectedLen: 1, }, { description: "duplicate pod reference", claimInfo: &ClaimInfo{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:30:31 UTC 2024 - 21K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go
oldPod, newPod *v1.Pod expectedHint framework.QueueingHint }{ { name: "add a pod which matches the pod affinity", pod: st.MakePod().Name("p").PodAffinityIn("service", "region", []string{"securityscan", "value2"}, st.PodAffinityWithRequiredReq).Obj(), newPod: st.MakePod().Node("fake-node").Label("service", "securityscan").Obj(), expectedHint: framework.Queue, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 03:08:44 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go
pod *v1.Pod oldObj, newObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-old-object": { pod: &v1.Pod{}, oldObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "backoff-wrong-new-object": { pod: &v1.Pod{}, newObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 3.7K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go
expectedHint: framework.Queue, }, { name: "create node with non-related labels", pod: st.MakePod().Name("p").SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil). Obj(), newNode: st.MakeNode().Name("node-a").Label("foo", "bar").Obj(), expectedHint: framework.QueueSkip, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 17 06:30:53 UTC 2023 - 13K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/nodeunschedulable/node_unschedulable_test.go
testCases := []struct { name string pod *v1.Pod oldObj, newObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ { name: "backoff-wrong-new-object", pod: &v1.Pod{}, newObj: "not-a-node", expectedHint: framework.Queue, expectedErr: true, }, { name: "backoff-wrong-old-object", pod: &v1.Pod{},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Dec 16 12:50:11 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_none_test.go
func TestPolicyNoneMerge(t *testing.T) { tcases := []struct { name string providersHints []map[string][]TopologyHint expectedHint TopologyHint expectedAdmit bool }{ { name: "merged empty providers hints", providersHints: []map[string][]TopologyHint{}, expectedHint: TopologyHint{}, expectedAdmit: true, }, { name: "merge with a single provider with a single preferred resource",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 03 17:13:28 UTC 2020 - 2.8K bytes - Viewed (0) -
security/pkg/pki/util/dual_use_test.go
func TestDualUseCommonName(t *testing.T) { tt := []struct { name string host string expectedCN string expectErr bool }{ { name: "single host", host: "a.com", expectedCN: "a.com", }, { name: "multiple hosts", host: "a.com,b.org,c.groups", expectedCN: "a.com", }, { name: "long host", host: strings.Repeat("a", 61) + ".com",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 1.4K bytes - Viewed (0)