Home
last modified time | relevance | path

Searched refs:addEqualityGroup (Results 1 – 25 of 228) sorted by relevance

12345678910

/external/turbine/javatests/com/google/turbine/model/
DConstTest.java43 .addEqualityGroup(new Const.BooleanValue(true), new Const.BooleanValue(true)) in equalsTest()
44 .addEqualityGroup(new Const.BooleanValue(false), new Const.BooleanValue(false)) in equalsTest()
45 .addEqualityGroup(new Const.IntValue(1), new Const.IntValue(1)) in equalsTest()
46 .addEqualityGroup(new Const.IntValue(2), new Const.IntValue(2)) in equalsTest()
47 .addEqualityGroup(new Const.LongValue(1), new Const.LongValue(1)) in equalsTest()
48 .addEqualityGroup(new Const.LongValue(2), new Const.LongValue(2)) in equalsTest()
49 .addEqualityGroup(new Const.CharValue('x'), new Const.CharValue('x')) in equalsTest()
50 .addEqualityGroup(new Const.CharValue('y'), new Const.CharValue('y')) in equalsTest()
51 .addEqualityGroup(new Const.FloatValue(1), new Const.FloatValue(1)) in equalsTest()
52 .addEqualityGroup(new Const.FloatValue(2), new Const.FloatValue(2)) in equalsTest()
[all …]
/external/guava/android/guava-tests/test/com/google/common/base/
DPredicatesTest.java102 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testAlwaysTrue_equality()
103 .addEqualityGroup(isOdd()) in testAlwaysTrue_equality()
104 .addEqualityGroup(Predicates.alwaysFalse()) in testAlwaysTrue_equality()
123 .addEqualityGroup(FALSE, Predicates.alwaysFalse()) in testAlwaysFalse_equality()
124 .addEqualityGroup(isOdd()) in testAlwaysFalse_equality()
125 .addEqualityGroup(Predicates.alwaysTrue()) in testAlwaysFalse_equality()
146 .addEqualityGroup(Predicates.not(isOdd()), Predicates.not(isOdd())) in testNot_equality()
147 .addEqualityGroup(Predicates.not(TRUE)) in testNot_equality()
148 .addEqualityGroup(isOdd()) in testNot_equality()
154 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testNot_equalityForNotOfKnownValues()
[all …]
DFunctionsTest.java105 .addEqualityGroup(function, Functions.forMap(map)) in testForMapWithoutDefault()
106 .addEqualityGroup(Functions.forMap(map, 42)) in testForMapWithoutDefault()
128 .addEqualityGroup(function, Functions.forMap(map, 42)) in testForMapWithDefault()
129 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault()
130 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault()
131 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault()
147 .addEqualityGroup( in testForMapWithDefault_includeSerializable()
149 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault_includeSerializable()
150 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault_includeSerializable()
151 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault_includeSerializable()
[all …]
DEquivalenceTest.java48 .addEqualityGroup(Equivalence.equals().pairwise(), Equivalence.equals().pairwise()) in testPairwiseEquivalent_equals()
49 .addEqualityGroup(Equivalence.identity().pairwise()) in testPairwiseEquivalent_equals()
67 .addEqualityGroup( in testWrap()
71 .addEqualityGroup(LENGTH_EQUIVALENCE.wrap("hi"), LENGTH_EQUIVALENCE.wrap("yo")) in testWrap()
72 .addEqualityGroup(LENGTH_EQUIVALENCE.wrap(null), LENGTH_EQUIVALENCE.wrap(null)) in testWrap()
73 .addEqualityGroup(Equivalence.equals().wrap("hello")) in testWrap()
74 .addEqualityGroup(Equivalence.equals().wrap(null)) in testWrap()
113 .addEqualityGroup( in testOnResultOf_equals()
116 .addEqualityGroup(Equivalence.equals().onResultOf(Functions.toStringFunction())) in testOnResultOf_equals()
117 .addEqualityGroup(Equivalence.identity().onResultOf(Functions.identity())) in testOnResultOf_equals()
[all …]
/external/guava/guava-tests/test/com/google/common/base/
DPredicatesTest.java102 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testAlwaysTrue_equality()
103 .addEqualityGroup(isOdd()) in testAlwaysTrue_equality()
104 .addEqualityGroup(Predicates.alwaysFalse()) in testAlwaysTrue_equality()
123 .addEqualityGroup(FALSE, Predicates.alwaysFalse()) in testAlwaysFalse_equality()
124 .addEqualityGroup(isOdd()) in testAlwaysFalse_equality()
125 .addEqualityGroup(Predicates.alwaysTrue()) in testAlwaysFalse_equality()
146 .addEqualityGroup(Predicates.not(isOdd()), Predicates.not(isOdd())) in testNot_equality()
147 .addEqualityGroup(Predicates.not(TRUE)) in testNot_equality()
148 .addEqualityGroup(isOdd()) in testNot_equality()
154 .addEqualityGroup(TRUE, Predicates.alwaysTrue()) in testNot_equalityForNotOfKnownValues()
[all …]
DFunctionsTest.java105 .addEqualityGroup(function, Functions.forMap(map)) in testForMapWithoutDefault()
106 .addEqualityGroup(Functions.forMap(map, 42)) in testForMapWithoutDefault()
128 .addEqualityGroup(function, Functions.forMap(map, 42)) in testForMapWithDefault()
129 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault()
130 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault()
131 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault()
147 .addEqualityGroup( in testForMapWithDefault_includeSerializable()
149 .addEqualityGroup(Functions.forMap(map)) in testForMapWithDefault_includeSerializable()
150 .addEqualityGroup(Functions.forMap(map, null)) in testForMapWithDefault_includeSerializable()
151 .addEqualityGroup(Functions.forMap(map, 43)) in testForMapWithDefault_includeSerializable()
[all …]
DEquivalenceTest.java48 .addEqualityGroup(Equivalence.equals().pairwise(), Equivalence.equals().pairwise()) in testPairwiseEquivalent_equals()
49 .addEqualityGroup(Equivalence.identity().pairwise()) in testPairwiseEquivalent_equals()
67 .addEqualityGroup( in testWrap()
71 .addEqualityGroup(LENGTH_EQUIVALENCE.wrap("hi"), LENGTH_EQUIVALENCE.wrap("yo")) in testWrap()
72 .addEqualityGroup(LENGTH_EQUIVALENCE.wrap(null), LENGTH_EQUIVALENCE.wrap(null)) in testWrap()
73 .addEqualityGroup(Equivalence.equals().wrap("hello")) in testWrap()
74 .addEqualityGroup(Equivalence.equals().wrap(null)) in testWrap()
113 .addEqualityGroup( in testOnResultOf_equals()
116 .addEqualityGroup(Equivalence.equals().onResultOf(Functions.toStringFunction())) in testOnResultOf_equals()
117 .addEqualityGroup(Equivalence.identity().onResultOf(Functions.identity())) in testOnResultOf_equals()
[all …]
/external/guava/guava-testlib/test/com/google/common/testing/
DEqualsTesterTest.java54 equalsTester.addEqualityGroup((Object) null); in testAddNullReference()
63 equalsTester.addEqualityGroup(reference, equalObject1, null); in testAddTwoEqualObjectsAtOnceWithNull()
72 equalsTester.addEqualityGroup(reference, (Object[]) null); in testAddNullEqualObject()
83 equalsTester.addEqualityGroup(equalObject1, notEqualObject1); in testAddEqualObjectWithOArgConstructor()
103 equalsTester.addEqualityGroup(reference); in testTestEqualsEmptyLists()
112 equalsTester.addEqualityGroup(reference, equalObject1, equalObject2); in testTestEqualsEqualsObjects()
119 equalsTester.addEqualityGroup(obj); in testNonreflexiveEquals()
132 equalsTester.addEqualityGroup(obj); in testInvalidEqualsNull()
145 equalsTester.addEqualityGroup(obj); in testInvalidEqualsIncompatibleClass()
158 equalsTester.addEqualityGroup(reference, notEqualObject1); in testInvalidNotEqualsEqualObject()
[all …]
/external/guava/android/guava-testlib/test/com/google/common/testing/
DEqualsTesterTest.java54 equalsTester.addEqualityGroup((Object) null); in testAddNullReference()
63 equalsTester.addEqualityGroup(reference, equalObject1, null); in testAddTwoEqualObjectsAtOnceWithNull()
72 equalsTester.addEqualityGroup(reference, (Object[]) null); in testAddNullEqualObject()
83 equalsTester.addEqualityGroup(equalObject1, notEqualObject1); in testAddEqualObjectWithOArgConstructor()
103 equalsTester.addEqualityGroup(reference); in testTestEqualsEmptyLists()
112 equalsTester.addEqualityGroup(reference, equalObject1, equalObject2); in testTestEqualsEqualsObjects()
119 equalsTester.addEqualityGroup(obj); in testNonreflexiveEquals()
132 equalsTester.addEqualityGroup(obj); in testInvalidEqualsNull()
145 equalsTester.addEqualityGroup(obj); in testInvalidEqualsIncompatibleClass()
158 equalsTester.addEqualityGroup(reference, notEqualObject1); in testInvalidNotEqualsEqualObject()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DTablesTest.java52 .addEqualityGroup(entry, Tables.immutableCell("foo", 1, 'a')) in testEntryEquals()
53 .addEqualityGroup(Tables.immutableCell("bar", 1, 'a')) in testEntryEquals()
54 .addEqualityGroup(Tables.immutableCell("foo", 2, 'a')) in testEntryEquals()
55 .addEqualityGroup(Tables.immutableCell("foo", 1, 'b')) in testEntryEquals()
56 .addEqualityGroup(Tables.immutableCell(null, null, null)) in testEntryEquals()
64 .addEqualityGroup(entry, Tables.immutableCell(null, null, null)) in testEntryEqualsNull()
65 .addEqualityGroup(Tables.immutableCell("bar", null, null)) in testEntryEqualsNull()
66 .addEqualityGroup(Tables.immutableCell(null, 2, null)) in testEntryEqualsNull()
67 .addEqualityGroup(Tables.immutableCell(null, null, 'b')) in testEntryEqualsNull()
68 .addEqualityGroup(Tables.immutableCell("foo", 1, 'a')) in testEntryEqualsNull()
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapEqualsTester.java42 .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) in testEqualsTrue()
50 .addEqualityGroup(multimap()) in testEqualsFalse()
51 .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) in testEqualsFalse()
62 .addEqualityGroup(original) in testEqualsMultimapWithNullKey()
63 .addEqualityGroup( in testEqualsMultimapWithNullKey()
75 .addEqualityGroup(original) in testEqualsMultimapWithNullValue()
76 .addEqualityGroup( in testEqualsMultimapWithNullValue()
84 .addEqualityGroup(multimap()) in testNotEqualsEmpty()
85 .addEqualityGroup(getSubjectGenerator().create()) in testNotEqualsEmpty()
DMultisetEqualsTester.java36 .addEqualityGroup( in testEqualsSameContents()
44 .addEqualityGroup(getMultiset()) in testNotEqualsEmpty()
45 .addEqualityGroup(getSubjectGenerator().create()) in testNotEqualsEmpty()
57 .addEqualityGroup(getMultiset()) in testEqualsMultisetWithNullValue()
58 .addEqualityGroup( in testEqualsMultisetWithNullValue()
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
DMultimapEqualsTester.java42 .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) in testEqualsTrue()
50 .addEqualityGroup(multimap()) in testEqualsFalse()
51 .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) in testEqualsFalse()
62 .addEqualityGroup(original) in testEqualsMultimapWithNullKey()
63 .addEqualityGroup( in testEqualsMultimapWithNullKey()
75 .addEqualityGroup(original) in testEqualsMultimapWithNullValue()
76 .addEqualityGroup( in testEqualsMultimapWithNullValue()
84 .addEqualityGroup(multimap()) in testNotEqualsEmpty()
85 .addEqualityGroup(getSubjectGenerator().create()) in testNotEqualsEmpty()
DMultisetEqualsTester.java36 .addEqualityGroup( in testEqualsSameContents()
44 .addEqualityGroup(getMultiset()) in testNotEqualsEmpty()
45 .addEqualityGroup(getSubjectGenerator().create()) in testNotEqualsEmpty()
57 .addEqualityGroup(getMultiset()) in testEqualsMultisetWithNullValue()
58 .addEqualityGroup( in testEqualsMultisetWithNullValue()
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DAggregationDataTest.java147 .addEqualityGroup(SumDataDouble.create(10.0), SumDataDouble.create(10.0)) in testEquals()
148 .addEqualityGroup(SumDataDouble.create(20.0), SumDataDouble.create(20.0)) in testEquals()
149 .addEqualityGroup(SumDataLong.create(20), SumDataLong.create(20)) in testEquals()
150 .addEqualityGroup(CountData.create(40), CountData.create(40)) in testEquals()
151 .addEqualityGroup(CountData.create(80), CountData.create(80)) in testEquals()
152 .addEqualityGroup( in testEquals()
155 .addEqualityGroup(DistributionData.create(10, 10, 1, 1, 0, Arrays.asList(0L, 10L, 100L))) in testEquals()
156 .addEqualityGroup(DistributionData.create(110, 10, 1, 1, 0, Arrays.asList(0L, 10L, 0L))) in testEquals()
157 .addEqualityGroup(DistributionData.create(10, 110, 1, 1, 0, Arrays.asList(0L, 10L, 0L))) in testEquals()
158 .addEqualityGroup(DistributionData.create(10, 10, -1, 1, 0, Arrays.asList(0L, 10L, 0L))) in testEquals()
[all …]
DAggregationTest.java60 .addEqualityGroup(Sum.create(), Sum.create()) in testEquals()
61 .addEqualityGroup(Count.create(), Count.create()) in testEquals()
62 .addEqualityGroup( in testEquals()
65 .addEqualityGroup( in testEquals()
68 .addEqualityGroup(Mean.create(), Mean.create()) in testEquals()
69 .addEqualityGroup(LastValue.create(), LastValue.create()) in testEquals()
/external/opencensus-java/api/src/test/java/io/opencensus/tags/
DTagContextTest.java40 .addEqualityGroup( in equals_IgnoresTagOrderAndTagContextClass()
56 .addEqualityGroup( in equals_HandlesNullIterator()
66 .addEqualityGroup(new SimpleTagContext(TAG1)) in equals_DoesNotIgnoreNullTags()
67 .addEqualityGroup(new SimpleTagContext(TAG1, null), new SimpleTagContext(null, TAG1)) in equals_DoesNotIgnoreNullTags()
68 .addEqualityGroup(new SimpleTagContext(TAG1, null, null)) in equals_DoesNotIgnoreNullTags()
75 .addEqualityGroup(new SimpleTagContext(TAG1)) in equals_DoesNotIgnoreDuplicateTags()
76 .addEqualityGroup(new SimpleTagContext(TAG1, TAG1)) in equals_DoesNotIgnoreDuplicateTags()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypesTest.java62 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewParameterizedType()
101 .addEqualityGroup(jvmType, ourType) in testNewParameterizedTypeWithOwner()
102 .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture()) in testNewParameterizedTypeWithOwner()
103 .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture()) in testNewParameterizedTypeWithOwner()
156 .addEqualityGroup(jvmType1, ourType1) in testNewArrayType()
157 .addEqualityGroup(jvmType2, ourType2) in testNewArrayType()
168 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewArrayTypeOfArray()
175 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewArrayType_primitive()
230 .addEqualityGroup(noBoundJvmType, objectBoundJvmType, objectBound) in testNewWildcardType()
231 .addEqualityGroup(upperBoundJvmType, upperBound) in testNewWildcardType()
[all …]
DAbstractInvocationHandlerTest.java60 .addEqualityGroup(newDelegatingList(LIST1)) in testEquals()
63 .addEqualityGroup(newDelegatingList(LIST1)) in testEquals()
64 .addEqualityGroup(newDelegatingList(LIST2)) in testEquals()
65 .addEqualityGroup( in testEquals()
68 .addEqualityGroup(newProxyWithEqualsForInterfaces(Runnable.class, List.class)) in testEquals()
69 .addEqualityGroup( in testEquals()
73 .addEqualityGroup( in testEquals()
77 .addEqualityGroup(newDelegatingIterableWithEquals(LIST2)) // different interface in testEquals()
/external/guava/android/guava-tests/test/com/google/common/reflect/
DTypesTest.java62 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewParameterizedType()
101 .addEqualityGroup(jvmType, ourType) in testNewParameterizedTypeWithOwner()
102 .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture()) in testNewParameterizedTypeWithOwner()
103 .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture()) in testNewParameterizedTypeWithOwner()
156 .addEqualityGroup(jvmType1, ourType1) in testNewArrayType()
157 .addEqualityGroup(jvmType2, ourType2) in testNewArrayType()
168 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewArrayTypeOfArray()
175 new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); in testNewArrayType_primitive()
230 .addEqualityGroup(noBoundJvmType, objectBoundJvmType, objectBound) in testNewWildcardType()
231 .addEqualityGroup(upperBoundJvmType, upperBound) in testNewWildcardType()
[all …]
DAbstractInvocationHandlerTest.java60 .addEqualityGroup(newDelegatingList(LIST1)) in testEquals()
63 .addEqualityGroup(newDelegatingList(LIST1)) in testEquals()
64 .addEqualityGroup(newDelegatingList(LIST2)) in testEquals()
65 .addEqualityGroup( in testEquals()
68 .addEqualityGroup(newProxyWithEqualsForInterfaces(Runnable.class, List.class)) in testEquals()
69 .addEqualityGroup( in testEquals()
73 .addEqualityGroup( in testEquals()
77 .addEqualityGroup(newDelegatingIterableWithEquals(LIST2)) // different interface in testEquals()
/external/turbine/javatests/com/google/turbine/processing/
DTurbineNameTest.java32 .addEqualityGroup( in equals()
34 .addEqualityGroup(new TurbineName("is")) in equals()
35 .addEqualityGroup(new TurbineName("there")) in equals()
36 .addEqualityGroup(new TurbineName("anybody")) in equals()
37 .addEqualityGroup(new TurbineName("in")) in equals()
DTurbineTypeMirrorTest.java70 .addEqualityGroup( in equals()
82 .addEqualityGroup( in equals()
90 .addEqualityGroup( in equals()
93 .addEqualityGroup( in equals()
96 .addEqualityGroup( in equals()
98 .addEqualityGroup( in equals()
103 .addEqualityGroup( in equals()
108 .addEqualityGroup(factory.asTypeMirror(Type.WildUnboundedTy.create(ImmutableList.of()))) in equals()
109 .addEqualityGroup( in equals()
114 .addEqualityGroup(factory.packageType(new PackageSymbol("java/lang"))) in equals()
[all …]
DTurbineElementTest.java136 .addEqualityGroup( in equals()
139 .addEqualityGroup(factory.typeElement(new ClassSymbol("java/util/ArrayList"))) in equals()
140 .addEqualityGroup( in equals()
143 .addEqualityGroup( in equals()
145 .addEqualityGroup( in equals()
150 .addEqualityGroup( in equals()
153 .addEqualityGroup( in equals()
168 .addEqualityGroup( in equals()
177 .addEqualityGroup( in equals()
192 .addEqualityGroup( in equals()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DTablesTest.java138 .addEqualityGroup(entry, Tables.immutableCell("foo", 1, 'a')) in testEntryEquals()
139 .addEqualityGroup(Tables.immutableCell("bar", 1, 'a')) in testEntryEquals()
140 .addEqualityGroup(Tables.immutableCell("foo", 2, 'a')) in testEntryEquals()
141 .addEqualityGroup(Tables.immutableCell("foo", 1, 'b')) in testEntryEquals()
142 .addEqualityGroup(Tables.immutableCell(null, null, null)) in testEntryEquals()
150 .addEqualityGroup(entry, Tables.immutableCell(null, null, null)) in testEntryEqualsNull()
151 .addEqualityGroup(Tables.immutableCell("bar", null, null)) in testEntryEqualsNull()
152 .addEqualityGroup(Tables.immutableCell(null, 2, null)) in testEntryEqualsNull()
153 .addEqualityGroup(Tables.immutableCell(null, null, 'b')) in testEntryEqualsNull()
154 .addEqualityGroup(Tables.immutableCell("foo", 1, 'a')) in testEntryEqualsNull()

12345678910