Home
last modified time | relevance | path

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

12345

/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>()
DSupervisorTest.kt14 unhandled = listOf( in <lambda>()
41 unhandled = listOf( in <lambda>()
60 unhandled = listOf( in <lambda>()
134 …fun testSupervisorThrowsWithFailingChild() = runTest(unhandled = listOf({e -> e is TestException2}… in <lambda>()
DFailedJobTest.kt29 unhandled = listOf({it -> it is TestException }) in <lambda>()
46 unhandled = listOf({it -> it is TestException }) in <lambda>()
/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(null, 2, 2, 2, 2, 7), result) in <lambda>()
DZipTest.kt19 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
26 assertEquals(listOf("a1", "b2", "c3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
27 assertEquals(listOf("a1", "b2", "c3"), f2.zip(f1) { i, j -> j + i }.toList()) in <lambda>()
55 assertEquals(listOf("a1", "null2", "null3"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
62 assertEquals(listOf("a1", "bnull", "cnull"), f1.zip(f2, { i, j -> i + j }).toList()) in <lambda>()
76 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
91 assertEquals(listOf("a1", "b2"), f2.zip(f1) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
110 assertEquals(listOf("1a", "2b"), f1.zip(f2) { s1, s2 -> s1 + s2 }.toList()) in <lambda>()
DTransformLatestTest.kt18 assertEquals(listOf(1, 2, 2, 3, 3, 4), flow.toList()) in <lambda>()
30 assertEquals(listOf(0, 1, 2, 3, 4), list) in <lambda>()
69 val flow = listOf(1, 2, 3, 4).asFlow() in <lambda>()
75 assertEquals(listOf(42), result) in <lambda>()
158 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
170 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
DFlatMapLatestTest.kt17 assertEquals(listOf(1, 2, 2, 3, 3, 4), flow.toList()) in <lambda>()
27 assertEquals(listOf(0, 1, 2, 3, 4), list) in <lambda>()
61 val flow = listOf(1, 2, 3, 4).asFlow() in <lambda>()
69 assertEquals(listOf(42), result) in <lambda>()
135 assertEquals(listOf(1), flow.take(1).toList()) in <lambda>()
DCombineTest.kt24 assertEquals(listOf("a1", "b1", "b2", "c2", "c3"), list) in <lambda>()
32 assertEquals(listOf("a1", "null1", "null2", "null2", "null3"), list) in <lambda>()
40 assertEquals(listOf("anull", "bnull", "b2", "c2", "cnull"), list) in <lambda>()
88 assertEquals(listOf("a1", "b1", "c1", "c2", "c3"), result) in <lambda>()
118 assertEquals(listOf("a1", "b1", "c1", "c2", "c3"), result) in <lambda>()
260 combineOriginal(listOf(this, other)) { args -> transform(args[0] as T1, args[1] as T2) } in combineLatest()
275 …combineTransformOriginal(listOf(this, other)) { args -> emit(transform(args[0] as T1, args[1] as T… in combineLatest()
DSampleTest.kt32 assertEquals(listOf("A", "B", "D"), result) in <lambda>()
70 assertEquals(listOf(2, 6, 7), result) in <lambda>()
116 assertEquals(listOf("A", null, null), result) in <lambda>()
147 assertEquals(listOf("A", "B", "C"), result) in <lambda>()
167 assertEquals(listOf(-1, -3, 0, 1, 2, 3), flow.toList()) in <lambda>()
DIndexedTest.kt15 … assertEquals(listOf(IndexedValue(0, 3), IndexedValue(1, 2), IndexedValue(2, 1)), flow.toList()) in <lambda>()
30 assertEquals(listOf(IndexedValue(0, 3L), IndexedValue(1, 2L), IndexedValue(2, 1L)), result) in <lambda>()
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/
DShakespearePlaysScrabble.kt78 val expected = listOf(120 to listOf("jezebel", "quickly"),
79 118 to listOf("zephyrs"), 116 to listOf("equinox"))
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/channels/
DChannelFlowTest.kt19 assertEquals(listOf(1, 2, 3), flow.toList()) in <lambda>()
29 assertEquals(listOf(1, 2), flow.toList()) in <lambda>()
40 assertEquals(listOf(1, 4), flow.toList()) // two elements in the middle got conflated in <lambda>()
88 assertEquals(listOf(1, 1), f.toList()) in <lambda>()
95 assertEquals(listOf(1, 1), f.toList()) in <lambda>()
DFlowCallbackTest.kt15 …fun testClosedPrematurely() = runTest(unhandled = listOf({ e -> e is ClosedSendChannelException })… in <lambda>()
44 assertEquals(listOf(1), flow.toList()) in <lambda>()
/external/dokka/core/src/test/kotlin/format/
DKotlinWebSiteFormatTest.kt10 …ice = KotlinWebsiteFormatService(fileGenerator, KotlinLanguageService(), listOf(), DokkaConsoleLog… in <lambda>()
62 …RootFromPath("testdata/format/website/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), options = … in <lambda>()
63 …ootFromPath("testdata/format/website/$path/jre7.kt"), defaultPlatforms = listOf("JVM", "JRE7"), op… in <lambda>()
64 …tRootFromPath("testdata/format/website/$path/js.kt"), defaultPlatforms = listOf("JS"), options = o… in <lambda>()
DKotlinWebSiteHtmlFormatTest.kt8 …= KotlinWebsiteHtmlFormatService(fileGenerator, KotlinLanguageService(), listOf(), EmptyHtmlTempla… in <lambda>()
73 …romPath("testdata/format/website-html/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), options = … in <lambda>()
74 …omPath("testdata/format/website-html/$path/jre7.kt"), defaultPlatforms = listOf("JVM", "JRE7"), op… in <lambda>()
75 …FromPath("testdata/format/website-html/$path/js.kt"), defaultPlatforms = listOf("JS"), options = o… in <lambda>()
DMarkdownFormatTest.kt9 …verride val formatService = MarkdownFormatService(fileGenerator, KotlinLanguageService(), listOf()) in <lambda>()
318 … val service = MarkdownFormatService(fileGenerator, KotlinLanguageService(), listOf("JVM", "JS")) in <lambda>()
337 … contentRootFromPath("testdata/format/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), withKotlin… in <lambda>()
473 … contentRootFromPath("testdata/format/$path/jvm.kt"), defaultPlatforms = listOf("JVM"), options = … in <lambda>()
474 …, contentRootFromPath("testdata/format/$path/js.kt"), defaultPlatforms = listOf("JS"), options = o… in <lambda>()
487 val service = MarkdownFormatService(fileGenerator, KotlinLanguageService(), listOf()) in <lambda>()
489 buildPagesAndReadInto(listOf(model), output) in <lambda>()
DJavaLayoutHtmlFormatTestCase.kt67 buildPages(listOf(model)) in <lambda>()
99 … verifyNode(fileName, noStdlibLink) { model -> listOf(model.members.single().members.single()) } in <lambda>()
112 listOf(model.members.single()), in <lambda>()
/external/dokka/core/src/main/kotlin/Generation/
DGenerator.kt19 fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) in buildPage()
21 fun Generator.buildOutline(node: DocumentationNode): Unit = buildOutlines(listOf(node)) in buildPage()
23 fun Generator.buildAll(node: DocumentationNode): Unit = buildAll(listOf(node)) in buildPage()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/
DDebugProbesTest.kt20 val traces = listOf( in <lambda>()
41 val traces = listOf( in <lambda>()
71 val traces = listOf( in <lambda>()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/logic/
DInferenceContextTest.java56 listOfString = listOf(string); in setup()
60 listOfE = listOf(new ResolvedTypeVariable(tpE)); in setup()
63 private ResolvedReferenceType listOf(ResolvedType elementType) { in listOf() method in InferenceContextTest
82 assertEquals(listOf(new InferenceVariableType(0, MyObjectProvider.INSTANCE)), result); in placingASingleVariableInside()
/external/guice/core/test/com/google/inject/
DTypeLiteralInjectionTest.java20 import static com.google.inject.util.Types.listOf;
89 assertEquals(TypeLiteral.get(listOf(Integer.class)), b.listOfT); in testInjectTypeLiteralWithClassTypes()
90 assertEquals(TypeLiteral.get(listOf(Types.subtypeOf(Integer.class))), b.listOfWildcardT); in testInjectTypeLiteralWithClassTypes()
/external/dokka/runners/cli/src/main/kotlin/cli/
Dmain.kt123 val freeArgs: List<String> = Args.parse(arguments, args) ?: listOf() in entry()
125 …uments.samples.isNotEmpty()) arguments.samples.split(File.pathSeparatorChar).toList() else listOf() in entry()
126 …uments.include.isNotEmpty()) arguments.include.split(File.pathSeparatorChar).toList() else listOf() in entry()
129 listOf(SourceLinkDefinitionImpl.parseSourceLinkDefinition(arguments.srcLink)) in entry()
134 listOf() in entry()
/external/kotlinx.coroutines/kotlinx-coroutines-debug/test/junit4/
DCoroutinesTimeoutTest.kt20 "hangingTest", expectedOutParts = listOf(
27 notExpectedOutParts = listOf("delay", "throwingTest"),
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DProduceConsumeJvmTest.kt22 listOf(0, 1, 10, 1000, Channel.UNLIMITED).flatMap { capacity -> in <lambda>()
23 listOf(1, 10, 1000).map { number -> in <lambda>()
DSimpleSendReceiveJvmTest.kt25 listOf(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 100, 1000).flatMap { n -> in <lambda>()
26 listOf(false, true).map { concurrent -> in <lambda>()

12345