- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for expectedSlices (0.2 sec)
-
pkg/controller/endpointslicemirroring/reconciler_helpers_test.go
} for i, expectedSlice := range expected { if expectedSlice.AddressType != actual[i].AddressType { t.Errorf("Expected Slice to have %s address type, got %s", expectedSlice.AddressType, actual[i].AddressType) } if expectedSlice.Name != actual[i].Name { t.Errorf("Expected Slice to have %s name, got %s", expectedSlice.Name, actual[i].Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 06 23:58:47 UTC 2021 - 7K bytes - Viewed (0) -
pkg/proxy/config/config_test.go
for { select { case slices = <-h.updated: if reflect.DeepEqual(slices, expectedSlices) { return } // Unittests will hard timeout in 5m with a stack trace, prevent that // and surface a clearer reason for failure. case <-time.After(wait.ForeverTestTimeout): t.Errorf("Timed out. Expected %#v, Got %#v", expectedSlices, slices) return } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 22 05:08:41 UTC 2024 - 14.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcherTest.groovy
then: thrown(AssertionError) } def "successful lines contained in comparisons: #expectedLines vs #actualLines"() { expect: comparer.assertLinesContainedIn(expectedLines, actualLines) where: expectedLines | actualLines ["a", "b", "c"] | ["a", "b", "c"] ["a"] | ["a", "b"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/LineSearchFailures.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/utils_test.go
testCases := []struct { name string tweakEndpoint func(ep *v1.Endpoints) expectedSlice discovery.EndpointSlice }{ { name: "create slice from endpoints", tweakEndpoint: func(ep *v1.Endpoints) { }, expectedSlice: discovery.EndpointSlice{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ discovery.LabelServiceName: endpoints.Name,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 23 15:40:23 UTC 2022 - 7.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcher.java
public void assertLinesContainedIn(List<String> expectedLines, List<String> actualLines) throws LineSearchFailures.AbstractLineListComparisonFailure { assert !expectedLines.isEmpty() : "there must be expected text"; assert !actualLines.isEmpty() : "there must be output text"; if (actualLines.size() < expectedLines.size()) { LineSearchFailures.insufficientSize(expectedLines, actualLines); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/PotentialMatch.java
Preconditions.checkArgument(isPossibleMatchIndex(expectedLines, actualLines, matchBeginsActualIdx), "match would extend beyond actual lines"); this.expectedLines = expectedLines; this.actualLines = actualLines; this.matchBeginsActualIdx = matchBeginsActualIdx;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/SequentialOutputMatcher.groovy
List expectedLines = expected.readLines().findAll { !it.isEmpty() } assertOutputLinesMatch(expectedLines, actualLines, ignoreExtraLines, actual) } protected void assertOutputLinesMatch(List<String> expectedLines, List<String> actualLines, boolean ignoreExtraLines, String actual) { int pos = 0 for (; pos < actualLines.size() && pos < expectedLines.size(); pos++) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
} }); if (expectedLines.isEmpty()) { assertTrue(list.isEmpty()); } else { assertEquals(expectedLines.subList(0, 1), list); } } private void assertExpectedString(String string) { assertEquals(expected, string); } private void assertExpectedLines(List<String> list) { assertEquals(expectedLines, list); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 6.8K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AnyOrderOutputMatcher.groovy
protected void assertOutputLinesMatch(List<String> expectedLines, List<String> actualLines, boolean ignoreExtraLines, String actual) { List<String> unmatchedLines = new ArrayList<String>(actualLines) expectedLines.removeAll('') unmatchedLines.removeAll('') expectedLines.each { expectedLine -> def matchedLine = unmatchedLines.find { actualLine ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.9K bytes - Viewed (0)