Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for expectedCount (0.31 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

          service.shutdown();
        }
      }
    
      private ListenerCallQueue.Event<Object> incrementingEvent(
          Multiset<Object> counters, Object expectedListener, int expectedCount) {
        return incrementingEvent(counters, multiset(expectedListener, expectedCount));
      }
    
      private ListenerCallQueue.Event<Object> incrementingEvent(
          final Multiset<Object> counters, final Multiset<Object> expected) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  2. pkg/kubelet/container/testing/fake_runtime.go

    func (f *FakeRuntime) AssertCallCounts(funcName string, expectedCount int) bool {
    	f.Lock()
    	defer f.Unlock()
    	actualCount := 0
    	for _, c := range f.CalledFunctions {
    		if funcName == c {
    			actualCount += 1
    		}
    	}
    	if expectedCount != actualCount {
    		f.T.Errorf("AssertCallCounts: expected %s to be called %d times, but was actually called %d times.", funcName, expectedCount, actualCount)
    		return false
    	}
    	return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/java/SamplesJavaTestingIntegrationTest.groovy

            if (project) {
                path = project + '/' + path
            }
            return sampleDir.file(path)
        }
    
        private static void assertTestsRunCount(resultsXml, int expectedCount) {
            assert resultsXml.@tests == expectedCount
        }
    
        private static void assertTestRun(resultsXml, String testName) {
            assert resultsXml.testcase.find { it.@name == testName }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  4. pkg/controller/deployment/util/deployment_util_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.Name, func(t *testing.T) {
    			rs := GetReplicaCountForReplicaSets(test.sets)
    			if rs != test.expectedCount {
    				t.Errorf("In test case %s, expectedCount %+v, got %+v", test.Name, test.expectedCount, rs)
    			}
    			rs = GetActualReplicaCountForReplicaSets(test.sets)
    			if rs != test.expectedActual {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
  5. pkg/scheduler/schedule_one_test.go

    	tests := []struct {
    		name          string
    		pod           *v1.Pod
    		expectedCount int32
    	}{
    		{
    			name:          "nominated pods have lower priority, predicate is called once",
    			pod:           st.MakePod().Name("1").UID("1").Priority(highPriority).Obj(),
    			expectedCount: 1,
    		},
    		{
    			name:          "nominated pods have higher priority, predicate is called twice",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  6. pkg/controller/statefulset/stateful_set_control_test.go

    		}
    		revisions, err = ssc.ListRevisions(test.set)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if len(revisions) != test.expectedCount {
    			t.Errorf("%s: want %d revisions got %d", test.name, test.expectedCount, len(revisions))
    		}
    		if test.err && err == nil {
    			t.Errorf("%s: expected error", test.name)
    		}
    		if !test.err && !history.EqualRevision(current, test.expectedCurrent) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  7. src/crypto/tls/tls_test.go

    	c2.UnwrapSession(nil, ConnectionState{})
    	c2.WrapSession(ConnectionState{}, nil)
    	c2.EncryptedClientHelloRejectionVerify(ConnectionState{})
    
    	if called != (1<<expectedCount)-1 {
    		t.Fatalf("expected %d calls but saw calls %b", expectedCount, called)
    	}
    }
    
    func TestCloneNonFuncFields(t *testing.T) {
    	var c1 Config
    	v := reflect.ValueOf(&c1).Elem()
    
    	typ := v.Type()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDiagnostics.kt

            override val diagnosticClass get() = WrongNumberOfTypeArguments::class
            val expectedCount: Int
            val classifier: KaClassLikeSymbol
        }
    
        interface NoTypeArgumentsOnRhs : KaFirDiagnostic<PsiElement> {
            override val diagnosticClass get() = NoTypeArgumentsOnRhs::class
            val expectedCount: Int
            val classifier: KaClassLikeSymbol
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 11:41:05 UTC 2024
    - 172.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDiagnosticsImpl.kt

    internal class WrongNumberOfTypeArgumentsImpl(
        override val expectedCount: Int,
        override val classifier: KaClassLikeSymbol,
        firDiagnostic: KtPsiDiagnostic,
        token: KaLifetimeToken,
    ) : KaAbstractFirDiagnostic<PsiElement>(firDiagnostic, token), KaFirDiagnostic.WrongNumberOfTypeArguments
    
    internal class NoTypeArgumentsOnRhsImpl(
        override val expectedCount: Int,
        override val classifier: KaClassLikeSymbol,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 11:41:05 UTC 2024
    - 227.2K bytes
    - Viewed (0)
  10. 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)
Back to top