Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for actualCert (0.43 sec)

  1. pkg/scheduler/framework/parallelize/error_channel_test.go

    func TestErrorChannel(t *testing.T) {
    	errCh := NewErrorChannel()
    
    	if actualErr := errCh.ReceiveError(); actualErr != nil {
    		t.Errorf("expect nil from err channel, but got %v", actualErr)
    	}
    
    	err := errors.New("unknown error")
    	errCh.SendError(err)
    	if actualErr := errCh.ReceiveError(); actualErr != err {
    		t.Errorf("expect %v from err channel, but got %v", err, actualErr)
    	}
    
    	ctx, cancel := context.WithCancel(context.Background())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 17:39:23 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/testFixtures/groovy/org/gradle/plugin/devel/tasks/TaskValidationReportFixture.groovy

                    .sort()
                    .join(PROBLEM_SEPARATOR)
                    .replaceAll("\r\n", "\n")
                    .replaceAll("\n+", "\n")
    
    
            def actualText = reportText
            assert actualText == expectedReportContents
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Feb 11 15:31:37 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. pkg/kubelet/container/cache_test.go

    	// object with id filled.
    	actualStatus, actualErr := cache.Get(podID)
    	assert.Equal(t, status, actualStatus)
    	assert.Equal(t, nil, actualErr)
    }
    
    func TestDelete(t *testing.T) {
    	cache := &cache{pods: map[types.UID]*data{}}
    	// Write a new pod status into the cache.
    	podID, status := getTestPodIDAndStatus(3)
    	cache.Set(podID, status, nil, time.Time{})
    	actualStatus, actualErr := cache.Get(podID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 24 20:23:12 UTC 2020
    - 6K bytes
    - Viewed (0)
  4. pkg/kubelet/util/queue/work_queue_test.go

    	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) {
    	q, clock := newTestBasicWorkQueue()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/dataFlowInfoProvider/AbstractExitPointSnapshotTest.kt

            @OptIn(KaAnalysisNonPublicApi::class)
            val actualText = analyseForTest(mainFile) {
                val snapshot = getExitPointSnapshot(statements)
                stringRepresentation(snapshot)
            }
    
            testServices.assertions.assertEqualsToTestDataFileSibling(actualText)
        }
    
        private fun findStatements(mainFile: KtFile, textRange: TextRange): List<KtExpression> {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/errors_test.go

    		Create,
    		nil,
    		false,
    		nil)
    	err := errors.New("some error")
    	expectedErr := `baz.foo "Unknown/errorGettingName" is forbidden: some error`
    
    	actualErr := NewForbidden(attributes, err)
    	if actualErr.Error() != expectedErr {
    		t.Errorf("expected %v, got %v", expectedErr, actualErr)
    	}
    }
    
    type fakeObj struct{}
    type fakeObjKind struct{}
    
    func (f *fakeObj) GetObjectKind() schema.ObjectKind {
    	return &fakeObjKind{}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 17:49:43 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/inheritorsProvider/AbstractSealedInheritorsTest.kt

                val actualText = classSymbol.getSealedClassInheritors().joinToString("\n\n") { inheritor ->
                    "${inheritor.classId!!}\n${inheritor.render(KaDeclarationRendererForDebug.WITH_QUALIFIED_NAMES)}"
                }
    
                testServices.assertions.assertEqualsToTestDataFileSibling(actualText)
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. pkg/controller/podautoscaler/metrics/utilization_test.go

    	actualUtilizationRatio, actualCurrentUtilization, actualRawAverageValue, actualErr := GetResourceUtilizationRatio(tc.metrics, tc.requests, tc.targetUtilization)
    
    	if tc.expectedErr != nil {
    		assert.Error(t, actualErr, "there should be an error getting the utilization ratio")
    		assert.Contains(t, fmt.Sprintf("%v", actualErr), fmt.Sprintf("%v", tc.expectedErr), "the error message should be as expected")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 22 08:59:02 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/diagnosticProvider/AbstractElementDiagnosticsTest.kt

            analyze(mainFile) {
                val diagnostics = targetDeclaration.getDiagnostics(KaDiagnosticCheckerFilter.EXTENDED_AND_COMMON_CHECKERS)
    
                val actualText = buildString {
                    if (diagnostics.isNotEmpty()) {
                        for (diagnostic in diagnostics) {
                            append(diagnostic.factoryName).append(": ")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/typeProvider/AbstractHasCommonSubtypeTest.kt

            }
            if (errors.isNotEmpty()) {
                testServices.assertions.fail { errors.joinToString("\n") }
            }
            val actualText = actualTextBuilder.toString()
            if (actualText != originalText) {
                testServices.assertions.assertEqualsToFile(testDataPath, actualText)
            }
        }
    
        override fun configureTest(builder: TestConfigurationBuilder) {
            super.configureTest(builder)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top