[AA] Add tests for retrieving field and parameter annotation types

This commit is contained in:
Bart van Helvert
2023-10-25 17:02:56 +02:00
committed by Space Team
parent b9090e12b8
commit 793e7aa1d1
8 changed files with 66 additions and 0 deletions
@@ -82,6 +82,18 @@ public class Fe10IdeNormalAnalysisSourceModuleTypeReferenceTestGenerated extends
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationOnFunction.kt");
}
@Test
@TestMetadata("annotationParameterValue.kt")
public void testAnnotationParameterValue() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValue.kt");
}
@Test
@TestMetadata("annotationParameterValueBackingField.kt")
public void testAnnotationParameterValueBackingField() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValueBackingField.kt");
}
@Test
@TestMetadata("functionReceiver.kt")
public void testFunctionReceiver() throws Exception {
@@ -82,6 +82,18 @@ public class FirIdeDependentAnalysisSourceModuleTypeReferenceTestGenerated exten
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationOnFunction.kt");
}
@Test
@TestMetadata("annotationParameterValue.kt")
public void testAnnotationParameterValue() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValue.kt");
}
@Test
@TestMetadata("annotationParameterValueBackingField.kt")
public void testAnnotationParameterValueBackingField() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValueBackingField.kt");
}
@Test
@TestMetadata("functionReceiver.kt")
public void testFunctionReceiver() throws Exception {
@@ -82,6 +82,18 @@ public class FirIdeNormalAnalysisSourceModuleTypeReferenceTestGenerated extends
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationOnFunction.kt");
}
@Test
@TestMetadata("annotationParameterValue.kt")
public void testAnnotationParameterValue() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValue.kt");
}
@Test
@TestMetadata("annotationParameterValueBackingField.kt")
public void testAnnotationParameterValueBackingField() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValueBackingField.kt");
}
@Test
@TestMetadata("functionReceiver.kt")
public void testFunctionReceiver() throws Exception {
@@ -82,6 +82,18 @@ public class FirStandaloneNormalAnalysisSourceModuleTypeReferenceTestGenerated e
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationOnFunction.kt");
}
@Test
@TestMetadata("annotationParameterValue.kt")
public void testAnnotationParameterValue() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValue.kt");
}
@Test
@TestMetadata("annotationParameterValueBackingField.kt")
public void testAnnotationParameterValueBackingField() throws Exception {
runTest("analysis/analysis-api/testData/components/typeProvider/typeReference/annotationParameterValueBackingField.kt");
}
@Test
@TestMetadata("functionReceiver.kt")
public void testFunctionReceiver() throws Exception {
@@ -0,0 +1,6 @@
annotation class Anno
class Sub(
@An<caret>no
var x: Int
)
@@ -0,0 +1,2 @@
expression: Anno
ktType: Anno
@@ -0,0 +1,8 @@
@Target(AnnotationTarget.FIELD)
annotation class Anno
class Sub(
@An<caret>no
@JvmField
var x: Int
)
@@ -0,0 +1,2 @@
expression: Anno
ktType: Anno