/tools/metalava/metalava-model-psi/src/test/java/com/android/tools/metalava/model/psi/ |
D | PsiModifierItemTest.kt | 58 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test type-use nullability annotation used from Java and Kotlin source() 82 val inherited = codebase.assertClass("Inherited") in Kotlin implicit internal visibility inheritance() 106 assertTrue(codebase.assertClass("Internal").isInternal) in Kotlin class visibility modifiers() 107 assertTrue(codebase.assertClass("Public").isPublic) in Kotlin class visibility modifiers() 108 assertTrue(codebase.assertClass("DefaultPublic").isPublic) in Kotlin class visibility modifiers() 109 assertTrue(codebase.assertClass("Outer.Private").isPrivate) in Kotlin class visibility modifiers() 110 assertTrue(codebase.assertClass("Outer.Protected").isProtected) in Kotlin class visibility modifiers() 129 codebase.assertClass("Abstract").modifiers.let { in Kotlin class abstract and final modifiers() 135 codebase.assertClass("Sealed").modifiers.let { in Kotlin class abstract and final modifiers() 141 codebase.assertClass("Open").modifiers.let { in Kotlin class abstract and final modifiers() [all …]
|
D | PsiMethodItemTest.kt | 34 val classItem = codebase.assertClass("Foo") in property accessors have properties() 50 val classItem = codebase.assertClass("Foo") in destructuring functions do not have a property relationship() 69 val ctorItem = codebase.assertClass("Foo").assertMethod("Foo", "") in method return type is non-null() 72 val methodItem = codebase.assertClass("Foo").assertMethod("bar", "") in method return type is non-null() 107 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if super method is concrete() 135 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method only needs to be added to signature file if all multiple direct super methods requires override() 164 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("bar", "") in child method does not need to be added to signature file if override requiring super method is hidden() 181 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and return type changes() 198 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method need to be added to signature file if extending Object method and visibility changes() 218 val childMethodItem = codebase.assertClass("ChildClass").assertMethod("clone", "") in child method does not need to be added to signature file even if extending Object method and modifier changes when it is not a direct override() [all …]
|
D | PsiFieldItemTest.kt | 33 val field = codebase.assertClass("Foo").fields().single() in backing fields have properties() 52 val fooClass = codebase.assertClass("test.pkg.Foo") in no error for initializer of arrayOf() 76 val fooClass = codebase.assertClass("test.pkg.Foo") in Duplicated field has correct nullability() 80 val barClass = codebase.assertClass("test.pkg.Bar") in Duplicated field has correct nullability()
|
D | PsiParameterItemTest.kt | 33 val constructorItem = codebase.assertClass("Foo").constructors().single() in primary constructor parameters have properties() 80 val actualFile = codebase.assertClass("ActualKt").getSourceFile() in actuals get params from expects() 82 val functionItem = codebase.assertClass("ActualKt").methods().single() in actuals get params from expects() 98 val classItem = codebase.assertClass("Test") in actuals get params from expects()
|
D | PsiPropertyItemTest.kt | 35 val myVal = codebase.assertClass("Foo").properties().single() in primary constructor properties have constructor parameters() 54 val properties = codebase.assertClass("Foo").properties() in properties have getters() 72 val myVar = codebase.assertClass("Foo").properties().single() in var properties have setters() 98 val properties = codebase.assertClass("Foo").properties() in setter visibility() 129 val properties = codebase.assertClass("Foo").properties() in properties have backing fields() 220 val properties = codebase.assertClass("Foo").properties() in annotation on properties() 317 val properties = codebase.assertClass("Foo").properties() in properties have documentation()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/methoditem/ |
D | CommonSuperMethodsTest.kt | 56 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method() 101 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method from parent class as static() 132 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test no super method from parent class as private() 177 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent class() 178 val parentClassMethod = codebase.assertClass("test.pkg.ParentClass").methods().first() in Test single super method from parent class() 233 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from grand parent class() 235 codebase.assertClass("test.pkg.GrandParentClass").methods().first() in Test single super method from grand parent class() 292 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent and grand parent class() 293 val parentClassMethod = codebase.assertClass("test.pkg.ParentClass").methods().first() in Test single super method from parent and grand parent class() 338 val method = codebase.assertClass("test.pkg.Foo").methods().first() in Test single super method from parent interface() [all …]
|
D | CommonMethodItemTest.kt | 81 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in <lambda>() 84 .assertClass("test.pkg.Outer.Middle.Inner") in <lambda>() 120 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 188 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 237 val baseClass = codebase.assertClass("test.pkg.Base") in <lambda>() 238 val testClass = codebase.assertClass("test.pkg.Test") in <lambda>() 271 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 308 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() 344 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() 372 val methodItem = codebase.assertClass("test.pkg.Test").methods().single() in <lambda>() [all …]
|
D | CommonSuspendMethodTest.kt | 39 val method = codebase.assertClass("test.pkg.TestKt").methods().single() in Test suspend top level fun with nullable return type() 58 val method = codebase.assertClass("test.pkg.TestKt").methods().single() in Test suspend top level fun with non-nullable return type() 79 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test suspend interface fun with nullable return type() 100 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test suspend interface fun with non-nullable return type() 121 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test suspend interface fun with primitive nullable return type() 142 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test suspend interface fun with primitive return type() 161 val method = codebase.assertClass("test.pkg.TestKt").methods().single() in Test suspend inline fun with reified type()
|
D | CommonParameterItemTest.kt | 65 codebase.assertClass("test.pkg.Bar").methods().single().parameters().single() in Test deprecated parameter by annotation() 110 codebase.assertClass("test.pkg.Bar").methods().single().parameters().single() in Test not deprecated parameter() 158 codebase.assertClass("test.pkg.Bar").methods().single().parameters().single() in Test publicName reports correct name when specified() 189 codebase.assertClass("test.pkg.Bar").methods().single().parameters().single() in Test publicName reports correct name when not specified() 301 for (method in codebase.assertClass("test.pkg.Foo").methods()) { in Test nullability of parameter annotated with @not-type-use-NonNull() 361 for (method in codebase.assertClass("test.pkg.Foo").methods()) { in Test nullability of parameter annotated with @not-type-use-Nullable() 416 for (method in codebase.assertClass("test.pkg.Foo").methods()) { in Test nullability of non-Kotlin varargs() 460 for (method in codebase.assertClass("test.pkg.Foo").methods()) { in Test nullability of Kotlin varargs last() 495 for (method in codebase.assertClass("test.pkg.TestKt").methods()) { in Test nullability of Kotlin varargs not-last() 530 for (method in codebase.assertClass("test.pkg.TestKt").methods()) { in Test nullability of Kotlin varargs last in inline reified fun()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/ |
D | BootstrapSourceModelProviderTest.kt | 62 val classItem = codebase.assertClass("test.pkg.Test") in 030 - check simplest class() 98 val testClass = codebase.assertClass("test.pkg.Test") in 050 - check field exists() 118 val testClass = codebase.assertClass("test.pkg.Test") in 060 - check method exists() 137 val testClass = codebase.assertClass("test.pkg.Test") in 070 - check constructor exists() 156 val classItem = codebase.assertClass("test.pkg.Test") in 080 - check inner class() 157 val innerClassItem = codebase.assertClass("test.pkg.Test.InnerTestClass") in 080 - check inner class() 193 val classItem = codebase.assertClass("test.pkg.Test") in 090 - check class hierarchy() 194 val superClassItem = codebase.assertClass("test.pkg.SuperClass") in 090 - check class hierarchy() 195 val superInterfaceItem = codebase.assertClass("test.parent.SuperInterface") in 090 - check class hierarchy() 196 val childInterfaceItem = codebase.assertClass("test.pkg.ChildInterface") in 090 - check class hierarchy() [all …]
|
D | CommonModifierListWriterTest.kt | 61 val testClass = codebase.assertClass("test.pkg.Test") in modifiers public() 93 val testClass = codebase.assertClass("test.pkg.Test") in modifiers public final method in open class() 125 val testClass = codebase.assertClass("test.pkg.Test") in modifiers public explicitly final method in final class() 161 val testClass = codebase.assertClass("test.pkg.Test") in modifiers public explicitly final method in final class - normalized() 193 val testClass = codebase.assertClass("test.pkg.Test") in modifiers public implicitly final method in final class()
|
D | CommonModelTest.kt | 193 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does not find super methods() 211 previouslyReleased.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does find super methods() 215 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does find super methods() 239 previouslyReleased.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods() 243 val fooFoo = latest.assertClass("test.pkg.Foo").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods() 244 val barFoo = latest.assertClass("test.pkg.Bar").assertMethod("foo", "int") in test findCorrespondingItemIn does duplicate super methods()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/classitem/ |
D | CommonClassItemTest.kt | 63 val testClass = codebase.assertClass("test.pkg.Test") in empty class() 98 val fooClass = codebase.assertClass("test.pkg.Foo") in Find method with type parameterized by two types() 157 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in type parameters() 160 .assertClass("test.pkg.Outer.Middle.Inner") in Test access type parameter of outer class in type parameters() 223 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in extends type() 224 val extendsType = codebase.assertClass("test.pkg.Outer.Middle.Inner").superClassType()!! in Test access type parameter of outer class in extends type() 283 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class in interface type() 285 codebase.assertClass("test.pkg.Outer.Middle.Inner").interfaceTypes().single() in Test access type parameter of outer class in interface type() 319 val fooInterface = codebase.assertClass("test.pkg.Foo") in Test interface no extends list() 371 val interfaceA = codebase.assertClass("test.pkg.A") in Test interface extends list() [all …]
|
D | CommonDataClassTest.kt | 51 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class fields() 74 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class methods and constructors() 109 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class constructor() 124 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class copy method() 139 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class getter method() 151 val fooClass = codebase.assertClass("test.pkg.Foo") in Test data class setter method() 169 val fooClass = codebase.assertClass("test.pkg.Foo") in Test generic data class all members()
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/annotationitem/ |
D | CommonAnnotationItemTest.kt | 76 val testClass = codebase.assertClass("test.pkg.Test") in annotation with annotation values() 135 val testClass = codebase.assertClass("test.pkg.Test") in annotation with boolean values() 185 val testClass = codebase.assertClass("test.pkg.Test") in annotation with char values() 235 val testClass = codebase.assertClass("test.pkg.Test") in annotation with class values() 346 val testClass = codebase.assertClass("test.pkg.Test") in annotation with number values() 416 val testClass = codebase.assertClass("test.pkg.Test") in annotation with string values() 458 val testClass = codebase.assertClass("test.pkg.Test") in annotation array values with single element() 499 val testClass = codebase.assertClass("test.pkg.Test") in annotation array values with single array element() 558 val testClass = codebase.assertClass("test.pkg.Test") in annotation with enum values() 606 val testClass = codebase.assertClass("test.pkg.Test") in annotation with constant literal values() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/propertyitem/ |
D | CommonPropertyItemTest.kt | 60 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in Test access type parameter of outer class() 63 .assertClass("test.pkg.Outer.Middle.Inner") in Test access type parameter of outer class() 89 val barClass = codebase.assertClass("test.pkg.Bar") in Test deprecated getter and setter by annotation() 118 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to Kotlin object() 146 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to generic Kotlin object() 180 val fooClass = codebase.assertClass("test.pkg.Foo") in Test property delegate to lambda Kotlin object() 216 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of non-null string() 241 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of nullable string() 266 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of list of non-null string() 292 val fooClass = codebase.assertClass("test.pkg.Foo") in Test abstract property of list of nullable string() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/ |
D | CommonTypeModifiersTest.kt | 81 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 157 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 208 val methods = codebase.assertClass("test.pkg.Foo").methods() in <lambda>() 249 val fooClass = codebase.assertClass("test.pkg.Foo") in <lambda>() 294 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 329 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 373 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 413 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 448 val method = codebase.assertClass("test.pkg.Foo").methods().single() in <lambda>() 500 codebase.assertClass("test.pkg.Foo").methods().single().parameters().single().type() in <lambda>() [all …]
|
D | CommonLambdaTypeItemTest.kt | 38 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, no receiver, no params, unit return type() 65 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, no receiver, String param, Int return type() 95 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, no receiver, String param, nullable Int return type() 125 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, Number receiver, String array param, Int return type() 155 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, nested lambda() 186 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda, return lambda() 217 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda field() 245 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda field nested lambda, no parameters, no return() 276 val fooClass = codebase.assertClass("test.pkg.Foo") in Test lambda field nested lambda one parameter, no return() 309 val fooClass = codebase.assertClass("test.pkg.Foo") in Test suspend lambda no receiver() [all …]
|
D | CommonTypeParameterItemTest.kt | 54 val fooClass = codebase.assertClass("test.pkg.Foo") in Test typeBounds no extends() 89 val fooClass = codebase.assertClass("test.pkg.Foo") in Test typeBounds extends Comparable() 126 val fooClass = codebase.assertClass("test.pkg.Foo") in Test typeBounds multiple() 169 val clazz = codebase.assertClass("test.pkg.Foo") in Test self-referential type parameter() 217 val typeParams = codebase.assertClass("test.pkg.Foo").typeParameterList in Test type parameters that reference each other() 267 val clazz = codebase.assertClass("test.pkg.Foo") in Test method type parameter that references class type parameter() 301 val clazz = codebase.assertClass("test.pkg.Foo") in Test type parameter bounds with multiple class parameters() 336 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test reified type parameter() 365 val clazz = codebase.assertClass("test.pkg.Foo") in Test explicit Object bound() 411 val method = codebase.assertClass("test.pkg.Foo").assertMethod("foo", "") in Test toType() [all …]
|
D | CommonTypeItemTest.kt | 85 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test primitive types() 141 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test primitive array types() 197 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test primitive vararg types() 240 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test multidimensional primitive array types() 313 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test class array types() 383 val method = codebase.assertClass("test.pkg.Foo").methods().single() in Test wildcard types() 464 val clz = codebase.assertClass("test.pkg.Foo") in Test variable types() 521 val foo = codebase.assertClass("test.pkg.Foo") in Test method return type variable types() 584 val foo = codebase.assertClass("test.pkg.Foo") in Test method parameter type variable types() 639 val foo = codebase.assertClass("test.pkg.Foo") in Test field type variable types() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/fielditem/ |
D | SourceFieldItemTest.kt | 47 val classItem = codebase.assertClass("test.pkg.Test") in test field with default value as constant literal() 79 val classItem = codebase.assertClass("test.pkg.Test") in test field with default value as constant expression() 111 val classItem = codebase.assertClass("test.pkg.Test") in test field with default value as object reference() 136 val classItem = codebase.assertClass("test.pkg.Test") in test default value of an enum constant field() 157 val classItem = codebase.assertClass("test.pkg.Test") in test default value of a Class type field() 177 val classItem = codebase.assertClass("test.pkg.Test") in test non final field with default value as constant literal() 201 val classItem = codebase.assertClass("test.pkg.Test") in test non final field with default value as constant expression() 225 val classItem = codebase.assertClass("test.pkg.Test") in test default value of a non final Class type field() 249 val classItem = codebase.assertClass("test.pkg.Test") in test duplicate() for fielditem() 250 val targetClassItem = codebase.assertClass("test.pkg.Target") in test duplicate() for fielditem()
|
D | CommonFieldItemTest.kt | 71 val oTypeParameter = codebase.assertClass("test.pkg.Outer").typeParameterList.single() in <lambda>() 73 codebase.assertClass("test.pkg.Outer.Middle.Inner").assertField("field").type() in <lambda>() 121 val enumConstant = codebase.assertClass("test.pkg.Foo").fields().single() in <lambda>() 172 val stringConstant = codebase.assertClass("test.pkg.Foo").assertField("CONST") in <lambda>() 193 val companionObject = codebase.assertClass("test.pkg.Foo").fields().single() in <lambda>() 243 val field = codebase.assertClass("test.pkg.Foo").assertField("field") in <lambda>() 298 for (field in codebase.assertClass("test.pkg.Foo").fields()) { in <lambda>() 357 for (field in codebase.assertClass("test.pkg.Foo").fields()) { in <lambda>() 415 val stringConstant = codebase.assertClass("test.pkg.Foo").assertField("CONST") in <lambda>() 456 val stringConstant = codebase.assertClass("test.pkg.Foo").assertField("CONST") in <lambda>() [all …]
|
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/ |
D | ApiFileTest.kt | 79 codebase.assertClass("test.pkg.Foo") in <lambda>() 100 val throwable = codebase.assertClass("java.lang.Throwable") in <lambda>() 106 val objectClass = codebase.assertClass("java.lang.Object") in <lambda>() 112 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() 135 val error = codebase.assertClass("java.lang.Error") in <lambda>() 141 val throwable = codebase.assertClass("java.lang.Throwable") in <lambda>() 147 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() 172 codebase.assertClass("test.pkg.Foo").assertMethod("foo", "").throwsTypes().first() in <lambda>() 194 codebase.assertClass("test.pkg.Foo").methods().single().throwsTypes().single() in <lambda>() 200 val unknownExceptionClass = codebase.assertClass("other.UnknownException") in <lambda>() [all …]
|
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/sourcefile/ |
D | SourceFileTest.kt | 101 val classItem = codebase.assertClass("test.pkg.Test") in test sourcefile imports() 102 val classItem1 = codebase.assertClass("test.Test") in test sourcefile imports() 103 val innerClassItem = codebase.assertClass("test.Test.Inner") in test sourcefile imports() 142 val classItem = codebase.assertClass("test.pkg.Test") in test sourcefile classes() 143 val outerClassItem = codebase.assertClass("test.pkg.Outer") in test sourcefile classes()
|
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/ |
D | SignatureInputOutputTest.kt | 87 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 106 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 128 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 151 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 175 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 198 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 226 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 253 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 277 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() 305 val foo = codebase.assertClass("test.pkg.Foo") in <lambda>() [all …]
|