[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:
+7
-3
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user