[Analysis API] Add test infrastructure for code fragments

Now, Analysis API tests can define modules with code fragments.
The preceding module will be used as a context module.
This commit is contained in:
Yan Zhulanow
2024-01-18 18:19:54 +09:00
committed by Space Team
parent 7298289e4e
commit 01ca31a061
17 changed files with 244 additions and 24 deletions
@@ -29,11 +29,16 @@ object AnalysisApiFe10TestConfiguratorFactory : AnalysisApiTestConfiguratorFacto
data.analysisSessionMode != AnalysisSessionMode.Normal -> false
data.analysisApiMode != AnalysisApiMode.Ide -> false
else -> when (data.moduleKind) {
TestModuleKind.Source -> true
TestModuleKind.Source -> {
true
}
TestModuleKind.ScriptSource,
TestModuleKind.LibraryBinary,
TestModuleKind.LibrarySource,
-> false
TestModuleKind.CodeFragment -> {
false
}
}
}
}