Home
last modified time | relevance | path

Searched refs:allOf (Results 1 – 25 of 52) sorted by relevance

123

/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
DAllOfTest.java7 import static org.hamcrest.core.AllOf.allOf;
18 Matcher<String> matcher = allOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes()
26 Matcher<String> matcher = allOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers()
36 …Matcher<String> matcher = allOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers()
44 final Matcher<SampleSubClass> matcher = allOf( in supportsMixedTypes()
56 allOf(equalTo("good"), equalTo("bad"), equalTo("ugly"))); in hasAReadableDescription()
61 … assertMismatchDescription("\"good\" was \"bad\"", allOf(equalTo("bad"), equalTo("good")), "bad"); in hasAMismatchDescriptionDescribingTheFirstFailingMatch()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DAllOf.java44 public static <T> Matcher<T> allOf(Iterable<Matcher<? super T>> matchers) { in allOf() method in AllOf
54 public static <T> Matcher<T> allOf(Matcher<? super T>... matchers) { in allOf() method in AllOf
55 return allOf((List) Arrays.asList(matchers)); in allOf()
DIsCollectionContaining.java10 import static org.hamcrest.core.AllOf.allOf;
109 return allOf(all); in hasItems()
130 return allOf(all); in hasItems()
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java71 assertThat(byName.keySet()).has().allOf( in testGetResources()
76 assertThat(byToString.keySet()).has().allOf( in testGetResources()
104 assertThat(names).has().allOf(anonymousClass.getName(), LocalClass.class.getName(), in testGetAllClasses()
106 assertThat(strings).has().allOf(anonymousClass.getName(), LocalClass.class.getName(), in testGetAllClasses()
108 assertThat(classes).has().allOf(anonymousClass, LocalClass.class, ClassPath.class, in testGetAllClasses()
111 assertThat(simpleNames).has().allOf("", "Local", "ClassPath", "ClassPathTest"); in testGetAllClasses()
129 assertThat(names).has().allOf(ClassPath.class.getName(), ClassPathTest.class.getName()); in testGetTopLevelClasses()
130 assertThat(strings).has().allOf(ClassPath.class.getName(), ClassPathTest.class.getName()); in testGetTopLevelClasses()
131 assertThat(classes).has().allOf(ClassPath.class, ClassPathTest.class); in testGetTopLevelClasses()
133 assertThat(simpleNames).has().allOf("ClassPath", "ClassPathTest"); in testGetTopLevelClasses()
[all …]
/external/r8/src/test/java/com/android/tools/r8/
DTestCondition.java64 private static final ToolSet ANY_TOOL = new ToolSet(EnumSet.allOf(DexTool.class));
66 new CompilerSet(EnumSet.allOf(CompilerUnderTest.class));
67 private static final RuntimeSet ANY_RUNTIME = new RuntimeSet(EnumSet.allOf(DexVm.class));
69 new CompilationModeSet(EnumSet.allOf(CompilationMode.class));
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapKeysTester.java53 assertThat(keys).has().allOf(sampleKeys().e0, sampleKeys().e1); in testKeys()
54 assertThat(keys.entrySet()).has().allOf( in testKeys()
75 assertThat(keys).has().allOf(null, sampleKeys().e1); in testKeysWithNullKey()
76 assertThat(keys.entrySet()).has().allOf( in testKeysWithNullKey()
DMultimapEntriesTester.java53 assertThat(multimap().entries()).has().allOf( in testContainsEntryWithNullKeyPresent()
66 assertThat(multimap().entries()).has().allOf( in testContainsEntryWithNullValuePresent()
DMultimapPutTester.java151 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e3, sampleValues().e3)); in testPutNotPresentKeyPropagatesToEntries()
160 assertThat(entries).has().allOf(Helpers.mapEntry(sampleKeys().e0, sampleValues().e3)); in testPutPresentKeyPropagatesToEntries()
DSortedSetMultimapTestSuiteBuilder.java82 if (Collections.disjoint(features, EnumSet.allOf(CollectionSize.class))) { in computeMultimapAsMapGetTestSuite()
/external/junit/src/main/java/org/junit/rules/
DExpectedExceptionMatcherBuilder.java3 import static org.hamcrest.CoreMatchers.allOf;
34 return allOf(castedMatchers()); in allOfTheMatchers()
/external/droiddriver/src/io/appium/droiddriver/finders/
DPredicates.java76 public static <T> Predicate<T> allOf(final Predicate<? super T> first,
103 public static <T> Predicate<T> allOf(final Iterable<Predicate<? super T>> components) {
129 public static <T> Predicate<T> allOf(final Predicate<? super T>... components) {
130 return Predicates.<T>allOf(Arrays.asList(components));
DBy.java200 public static MatchFinder allOf(final MatchFinder... finders) { in allOf() method in By
201 return new MatchFinder(Predicates.allOf(getPredicates(finders))); in allOf()
/external/clang/unittests/AST/
DASTContextParentMapTest.cpp67 allOf(hasParent(cxxRecordDecl(unless(isTemplateInstantiation()))), in TEST()
76 compoundStmt(allOf( in TEST()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java10 …public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>… in allOf() method in Matchers
11 return org.hamcrest.core.AllOf.<T>allOf(matchers); in allOf()
19 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) { in allOf() method in Matchers
20 return org.hamcrest.core.AllOf.<T>allOf(matchers); in allOf()
28 …public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcres… in allOf() method in Matchers
29 return org.hamcrest.core.AllOf.<T>allOf(first, second); in allOf()
37 …public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcres… in allOf() method in Matchers
38 return org.hamcrest.core.AllOf.<T>allOf(first, second, third); in allOf()
46 …public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcres… in allOf() method in Matchers
47 return org.hamcrest.core.AllOf.<T>allOf(first, second, third, fourth); in allOf()
[all …]
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DCoreMatchers.java11 …public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>… in allOf() method in CoreMatchers
12 return org.hamcrest.core.AllOf.<T>allOf(matchers); in allOf()
21 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) { in allOf() method in CoreMatchers
22 return org.hamcrest.core.AllOf.<T>allOf(matchers); in allOf()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp684 allOf(forField(hasName("foo_")), isWritten()))))); in TEST()
686 allOf(forField(hasName("bar_")), isWritten()))))); in TEST()
688 allOf(forField(hasName("bar_")), unless(isWritten())))))); in TEST()
701 EXPECT_TRUE(matches(Code, cxxConstructorDecl(allOf( in TEST()
702 hasAnyConstructorInitializer(allOf(isBaseInitializer(), isWritten())), in TEST()
704 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
705 hasAnyConstructorInitializer(allOf(isBaseInitializer(), isWritten())), in TEST()
707 EXPECT_TRUE(matches(Code, cxxConstructorDecl(allOf( in TEST()
708 hasAnyConstructorInitializer(allOf(isMemberInitializer(), isWritten())), in TEST()
710 EXPECT_TRUE(notMatches(Code, cxxConstructorDecl(allOf( in TEST()
[all …]
DASTMatchersNarrowingTest.cpp29 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
32 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
37 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
43 callExpr(allOf(callee(functionDecl(hasName("f"))), in TEST()
294 anyOf(hasName("Y"), allOf(isDerivedFrom("X"), hasName("Z")))); in TEST()
1825 stmt(allOf(ifStmt().bind("if"), in TEST()
1830 stmt(allOf(ifStmt().bind("if"), has(stmt(equalsBoundNode("if"))))))); in TEST()
1836 decl(allOf(recordDecl(hasName("::X::Y")).bind("record"), in TEST()
1840 decl(allOf(recordDecl(hasName("::X")).bind("record"), in TEST()
/external/caliper/examples/src/main/java/examples/
DEnumSetContainsBenchmark.java36 return EnumSet.allOf(RegularSize.class); in newSet()
45 return EnumSet.allOf(LargeSize.class); in newSet()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DIteratorFeature.java64 Collections.unmodifiableSet(EnumSet.allOf(IteratorFeature.class));
/external/v8/tools/clang/rewrite_scoped_refptr/
DRewriteScopedRefptr.cpp311 anyOf(allOf(hasParent(implicitCastExpr(returned_as_raw_ptr)), in main()
313 allOf(hasParent(implicitCastExpr( in main()
369 allOf(withInitializer(initialized_with_temporary), in main()
/external/jcommander/src/test/java/com/beust/jcommander/args/
DArgsEnum.java50 "Options: " + EnumSet.allOf((Class<? extends Enum>) ArgsEnum.ChoiceType.class)); in main()
/external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/
DFakeTickerTest.java75 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero()
/external/guava/guava/src/com/google/common/base/
DEnums.java90 for (T enumInstance : EnumSet.allOf(enumClass)) { in populateCache()
/external/guava/guava-testlib/test/com/google/common/testing/
DFakeTickerTest.java86 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero()
/external/droiddriver/src/io/appium/droiddriver/scroll/
DSentinelStrategy.java149 super(Predicates.allOf(original.predicate, extraPredicate)); in MorePredicateGetter()

123