[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
@@ -36,10 +36,14 @@ object AnalysisApiFirStandaloneModeTestConfiguratorFactory : AnalysisApiTestConf
else -> when (data.moduleKind) {
TestModuleKind.Source,
TestModuleKind.LibraryBinary,
-> true
TestModuleKind.CodeFragment -> {
true
}
TestModuleKind.ScriptSource,
TestModuleKind.LibrarySource
-> false
TestModuleKind.LibrarySource -> {
false
}
}
}
}