Home
last modified time | relevance | path

Searched refs:listOf (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/external/truth/extensions/proto/src/test/java/com/google/common/truth/extensions/proto/
DIterableOfProtosSubjectTest.java63 expectThat(listOf(message1)).isNotEmpty(); in testPlain_isEmpty()
65 expectFailureWhenTesting().that(listOf(message1)).isEmpty(); in testPlain_isEmpty()
74 expectThat(listOf(message1, message2)).hasSize(2); in testPlain_hasSize()
76 expectFailureWhenTesting().that(listOf(message1)).hasSize(3); in testPlain_hasSize()
82 expectThat(listOf(message1, message2)).containsNoDuplicates(); in testPlain_containsNoDuplicates()
84 expectFailureWhenTesting().that(listOf(message1, eqMessage1)).containsNoDuplicates(); in testPlain_containsNoDuplicates()
90 expectThat(listOf(message1, message2)).contains(eqMessage2); in testPlain_contains()
91 expectThat(listOf(message1, message2)).doesNotContain(eqIgnoredMessage1); in testPlain_contains()
93 expectFailureWhenTesting().that(listOf(message1, message2)).contains(eqIgnoredMessage1); in testPlain_contains()
96 expectFailureWhenTesting().that(listOf(message1, message2)).doesNotContain(eqMessage1); in testPlain_contains()
[all …]
DFieldScopesTest.java527 expectThat(listOf(message1, message2)) in testFromSetFields_comparingExpectedFieldsOnly()
531 .that(listOf(message1, message2)) in testFromSetFields_comparingExpectedFieldsOnly()
535 .that(listOf(message1, message2)) in testFromSetFields_comparingExpectedFieldsOnly()
872 expectThat(listOf(message1, message2)) in testFromSetFields_skipNulls()
875 expectThat(listOf(message1, message2)) in testFromSetFields_skipNulls()
881 .that(listOf(message1, message2)) in testFromSetFields_skipNulls()
895 .that(listOf(message1, message2)) in testFromSetFields_skipNulls()
921 expectThat(listOf(message1, message2)) in testFromSetFields_iterables_vacuousIfEmptyOrAllNull()
924 expectThat(listOf(message1, message2)) in testFromSetFields_iterables_vacuousIfEmptyOrAllNull()
929 .that(listOf(message1, message2)) in testFromSetFields_iterables_vacuousIfEmptyOrAllNull()
[all …]
/external/kotlinpoet/kotlinpoet/src/test/java/com/squareup/kotlinpoet/
DLambdaTypeNameTest.kt35 parameters = listOf(), in receiverWithoutAnnotationHasNoParens()
45 annotations = listOf(AnnotationSpec.get(annotation, includeDefaultValues = true)), in receiverWithAnnotationHasParens()
47 parameters = listOf(), in receiverWithAnnotationHasParens()
58 parameters = listOf(), in contextReceiver()
60 contextReceivers = listOf(STRING), in contextReceiver()
70 parameters = listOf(), in nullableFunctionWithContextReceiver()
72 contextReceivers = listOf(STRING), in nullableFunctionWithContextReceiver()
82 parameters = listOf(), in suspendingFunctionWithContextReceiver()
84 contextReceivers = listOf(STRING), in suspendingFunctionWithContextReceiver()
94 listOf(), in functionWithMultipleContextReceivers()
[all …]
DAnnotatedTypeNameTest.kt68 val type = String::class.asTypeName().copy(annotations = listOf(NEVER_NULL)) in annotatedArgumentOfParameterizedType()
76 val type = String::class.asTypeName().copy(annotations = listOf(NEVER_NULL)) in annotatedWildcardTypeNameWithSuper()
83 val type = String::class.asTypeName().copy(annotations = listOf(NEVER_NULL)) in annotatedWildcardTypeNameWithExtends()
100 type.copy(annotations = listOf(NEVER_NULL)), in annotatedEquivalence()
101 type.copy(annotations = listOf(NEVER_NULL)), in annotatedEquivalence()
103 assertNotEquals(type, type.copy(annotations = listOf(NEVER_NULL))) in annotatedEquivalence()
106 type.copy(annotations = listOf(NEVER_NULL)).hashCode().toLong(), in annotatedEquivalence()
107 type.copy(annotations = listOf(NEVER_NULL)).hashCode().toLong(), in annotatedEquivalence()
111 type.copy(annotations = listOf(NEVER_NULL)).hashCode().toLong(), in annotatedEquivalence()
124 val type = Map.Entry::class.asTypeName().copy(annotations = listOf(typeUseAnnotation)) in annotatedNestedType()
[all …]
/external/protobuf/java/kotlin/src/test/kotlin/com/google/protobuf/
DProto3Test.kt76 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
77 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
78 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
79 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
81 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
83 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
84 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
85 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
86 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
88 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
DProto2Test.kt219 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
220 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
221 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
222 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
224 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
226 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
227 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
228 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
229 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
231 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
DExtensionListTest.kt52 TestProto.repeatedExtension, listOf(1, 2, 3) in matchesList()
132 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(1, 2)) in expectedToString()
141 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(1, 2)), in equality()
142 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.differentExtension, listOf(1, 2)), in equality()
143 listOf(1, 2) in equality()
146 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(2, 2)), in equality()
147 listOf(2, 2) in equality()
DDslListTest.kt48 assertThat(DslList<Int, DummyProxy>(listOf(1, 2, 3))).containsExactly(1, 2, 3).inOrder() in matchesList()
113 assertThat(DslList<Int, DummyProxy>(listOf(1, 2)).toString()).isEqualTo("[1, 2]") in expectedToString()
119 .addEqualityGroup(DslList<Int, DummyProxy>(listOf(1, 2)), listOf(1, 2)) in equality()
120 .addEqualityGroup(DslList<Int, DummyProxy>(listOf(2, 2)), listOf(2, 2)) in equality()
/external/cronet/third_party/protobuf/java/kotlin/src/test/kotlin/com/google/protobuf/
DProto3Test.kt76 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
77 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
78 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
79 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
81 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
83 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
84 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
85 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
86 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
88 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
DProto2Test.kt218 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
219 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
220 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
221 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
223 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
225 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
226 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
227 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
228 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
230 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
DExtensionListTest.kt52 TestProto.repeatedExtension, listOf(1, 2, 3) in matchesList()
132 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(1, 2)) in expectedToString()
141 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(1, 2)), in equality()
142 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.differentExtension, listOf(1, 2)), in equality()
143 listOf(1, 2) in equality()
146 ExtensionList<Int, ExampleExtensibleMessage>(TestProto.repeatedExtension, listOf(2, 2)), in equality()
147 listOf(2, 2) in equality()
DDslListTest.kt48 assertThat(DslList<Int, DummyProxy>(listOf(1, 2, 3))).containsExactly(1, 2, 3).inOrder() in matchesList()
113 assertThat(DslList<Int, DummyProxy>(listOf(1, 2)).toString()).isEqualTo("[1, 2]") in expectedToString()
119 .addEqualityGroup(DslList<Int, DummyProxy>(listOf(1, 2)), listOf(1, 2)) in equality()
120 .addEqualityGroup(DslList<Int, DummyProxy>(listOf(2, 2)), listOf(2, 2)) in equality()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/src/
DCoroutinesBlockHoundIntegration.kt50 for (method in listOf("finalizeFinishingState", "invokeOnCompletion", "makeCancelling", in <lambda>()
61 …for (method in listOf("install", "uninstall", "hierarchyToString", "dumpCoroutinesInfo", "dumpDebu… in <lambda>()
80 for (method in listOf("clear", "peek", "removeFirstOrNull", "addLast")) { in <lambda>()
101 … for (method in listOf("emitSuspend", "awaitValue", "getReplayCache", "tryEmit", "cancelEmitter", in <lambda>()
106 for (method in listOf("getSubscriptionCount", "allocateSlot", "freeSlot")) { in <lambda>()
120 …for (method in listOf("openSubscription", "removeSubscriber", "send", "trySend", "registerSelectFo… in <lambda>()
125 for (method in listOf("cancelImpl")) { in <lambda>()
128 for (method in listOf("cancelImpl")) { in <lambda>()
137 … for (method in listOf("receive", "receiveCatching", "tryReceive", "registerSelectForReceive", in <lambda>()
143 for (method in listOf("hasNext")) { in <lambda>()
/external/dagger2/java/dagger/hilt/android/plugin/src/test/kotlin/
DIncrementalProcessorTest.kt381 listOf( in <lambda>()
401 listOf( in <lambda>()
450 listOf( in <lambda>()
460 listOf( in <lambda>()
482 listOf( in <lambda>()
494 listOf( in <lambda>()
537 listOf( in <lambda>()
544 listOf( in <lambda>()
566 listOf( in <lambda>()
574 listOf( in <lambda>()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/operators/
DScanTest.kt16 assertEquals(listOf(1, 3, 6, 10, 15), result) in <lambda>()
23 assertEquals(listOf(emptyList(), listOf(1), listOf(1, 2), listOf(1, 2, 3)), result) in <lambda>()
30 assertEquals(listOf(emptyList(), listOf(1), listOf(1, 2), listOf(1, 2, 3)), result) in <lambda>()
37 assertEquals(listOf(null, 2, 2, 2, 2, 7), result) in <lambda>()
DMergeTest.kt27 val flow = listOf(flowOf(), flowOf(42), flowOf()).merge() in <lambda>()
34 val list = listOf(flowOf(1), flowOf(null), flowOf(2)).merge().toList() in <lambda>()
35 assertEquals(listOf(1, null, 2), list) in <lambda>()
44 val result = listOf(flow).merge().flowOn(NamedDispatchers("irrelevant")).toList() in <lambda>()
45 assertEquals(listOf("source"), result) in <lambda>()
67 val result = listOf(flow, otherFlow).merge().toList() in <lambda>()
91 val result = listOf(flow, otherFlow).nonFuseableMerge().toList() in <lambda>()
112 val result = listOf(flow.flowOn(NamedDispatchers("1")), flow.flowOn(NamedDispatchers("2"))) in <lambda>()
116 assertEquals(listOf("1", "2"), result) in <lambda>()
/external/cronet/third_party/protobuf/java/kotlin-lite/src/test/kotlin/com/google/protobuf/
DProto2LiteTest.kt213 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
214 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
215 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
216 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
218 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
220 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
221 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
222 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
223 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
225 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
/external/protobuf/java/kotlin-lite/src/test/kotlin/com/google/protobuf/
DProto2LiteTest.kt214 repeatedInt32.addAll(listOf(1, 2)) in testRepeatedGettersAndSetters()
215 assertThat(repeatedInt32).isEqualTo(listOf(1, 2)) in testRepeatedGettersAndSetters()
216 repeatedInt32 += listOf(3, 4) in testRepeatedGettersAndSetters()
217 assertThat(repeatedInt32).isEqualTo(listOf(1, 2, 3, 4)) in testRepeatedGettersAndSetters()
219 assertThat(repeatedInt32).isEqualTo(listOf(5, 2, 3, 4)) in testRepeatedGettersAndSetters()
221 repeatedString.addAll(listOf("1", "2")) in testRepeatedGettersAndSetters()
222 assertThat(repeatedString).isEqualTo(listOf("1", "2")) in testRepeatedGettersAndSetters()
223 repeatedString += listOf("3", "4") in testRepeatedGettersAndSetters()
224 assertThat(repeatedString).isEqualTo(listOf("1", "2", "3", "4")) in testRepeatedGettersAndSetters()
226 assertThat(repeatedString).isEqualTo(listOf("5", "2", "3", "4")) in testRepeatedGettersAndSetters()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/sharing/
DSharedFlowTest.kt144 assertEquals(listOf(1), sh.replayCache) in <lambda>()
148 assertEquals(listOf(2), sh.replayCache) in <lambda>()
167 assertEquals(listOf(6), sh.replayCache) in <lambda>()
187 assertEquals(listOf(null), sh.replayCache) in <lambda>()
189 assertEquals(listOf(null), sh.replayCache) in <lambda>()
196 assertEquals(listOf(17), sh.replayCache) in <lambda>()
202 assertEquals(listOf(17), sh.replayCache) in <lambda>()
210 assertEquals(listOf(), sh.replayCache) in <lambda>()
229 assertEquals(listOf(3), sh.replayCache) in <lambda>()
233 assertEquals(listOf(5), sh.replayCache) in <lambda>()
[all …]
/external/kotlinx.atomicfu/atomicfu/src/jvmTest/kotlin/kotlinx/atomicfu/test/
DTopLevelGeneratedDeclarationsReflectionTest.kt21 checkDeclarations(javaClass, listOf( in testNoAccessPrivateTopLevel()
27 checkDeclarations(refVolatileClass, listOf( in testNoAccessPrivateTopLevel()
39 checkDeclarations(javaClass, listOf( in testPrivateTopLevel()
46 checkDeclarations(refVolatileClass, listOf( in testPrivateTopLevel()
58 checkDeclarations(javaClass, listOf( in testPublicTopLevelReflectionTest()
65 checkDeclarations(refVolatileClass, listOf( in testPublicTopLevelReflectionTest()
77 checkDeclarations(javaClass, listOf( in testPackagePrivateTopLevelReflectionTest()
84 checkDeclarations(refVolatileClass, listOf( in testPackagePrivateTopLevelReflectionTest()
DAtomicfuBytecodeTest.kt17 …fun testSynchronizedObjectBytecode() = checkBytecode(SynchronizedObjectTest::class.java, listOf(KO… in testSynchronizedObjectBytecode()
23 …fun testAtomicFieldBytecode() = checkBytecode(AtomicFieldTest::class.java, listOf(KOTLINX_ATOMICFU… in testSynchronizedObjectBytecode()
29 …fun testReentrantLockBytecode() = checkBytecode(ReentrantLockTest::class.java, listOf(KOTLINX_ATOM… in testSynchronizedObjectBytecode()
35 fun testTraceUseBytecode() = checkBytecode(TraceUseTest::class.java, listOf(KOTLINX_ATOMICFU)) in testSynchronizedObjectBytecode()
41 …fun testDelegatedPropertiesBytecode() = checkBytecode(DelegatedProperties::class.java, listOf(KOTL… in testSynchronizedObjectBytecode()
/external/kotlinx.atomicfu/atomicfu-gradle-plugin/src/test/kotlin/kotlinx/atomicfu/plugin/gradle/test/
DMppProjectTest.kt35 executedTasks = listOf( in testPluginApplication()
95 executedTasks = listOf( in testPluginApplication()
103 excludedTasks = listOf( in testPluginApplication()
148 executedTasks = listOf( in testPluginApplication()
156 excludedTasks = listOf( in testPluginApplication()
201 executedTasks = listOf( in testPluginApplication()
206 excludedTasks = listOf( in testPluginApplication()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/
DAwaitTest.kt28 assertEquals(listOf("OK", 1L), awaitAll(d, d2)) in <lambda>()
47 assertEquals(listOf(1, 2), awaitAll(d, d2)) in <lambda>()
57 assertEquals(listOf(1L, ""), listOf(d1, d2).awaitAll()) in <lambda>()
58 assertEquals(listOf(1L, Unit), listOf(d1, d3).awaitAll()) in <lambda>()
59 assertEquals(listOf("", Unit), listOf(d2, d3).awaitAll()) in <lambda>()
150 assertEquals(listOf(1, 2), awaitAll(d1, d2)) in <lambda>()
199 listOf(d1, d2, job).awaitAll() in <lambda>()
225 assertEquals(listOf("OK", "OK", "OK"), awaitAll(d, d, d)) in <lambda>()
338 listOf<Job>().joinAll() in <lambda>()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DAtomicArrayTest.kt94 val l1 = listOf(listOf("a", "bb", "ccc"), listOf("a", "bb")) in testRefArray()
95 val l2 = listOf(listOf("1", "22", "333"), listOf("1", "22")) in testRefArray()
99 A.mapArr[0].value = mapOf(listOf("A", "B") to "C") in testRefArray()
115 val l1 = listOf("a", "bb", "ccc") in extendedApiTest()
116 val l2 = listOf("dddd") in extendedApiTest()
117 val l3 = listOf("a", "bb", "ccc", "dddd") in extendedApiTest()
/external/jazzer-api/agent/src/test/java/com/code_intelligence/jazzer/instrumentor/
DDescriptorUtilsTest.kt40 val testCases = listOf( in testExtractTypeDescriptors()
43 listOf("Ljava/lang/Object;"), in testExtractTypeDescriptors()
48 listOf("Z", "I", "Ljava/lang/String;", "I", "I"), in testExtractTypeDescriptors()
53 listOf("I", "I", "[C", "I"), in testExtractTypeDescriptors()
58 listOf("I", "I"), in testExtractTypeDescriptors()

12345678910>>...12