You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val dep = dependencies(element.objectName, connectionName)
314
+
for (d : dep) {
315
+
ret.add(d)
316
+
}
317
+
} elseif (element instanceofChildObjectElement) {
318
+
val dep = dependencies(element.URL.memberObject, connectionName)
319
+
for (d : dep) {
320
+
ret.add(d)
321
+
}
322
+
}
323
+
}
324
+
return ret.toList.sortBy[it]
325
+
}
326
+
299
327
defcodeCoverage(Contextcontext) {
300
328
val view = context.view
301
329
val node = context.node
@@ -307,7 +335,6 @@ class UtplsqlController implements Controller {
307
335
varString owner =null;
308
336
if (node instanceofDatabaseSourceNode) {
309
337
connectionName = node.connectionName
310
-
owner = node.owner
311
338
} elseif (view instanceofWorksheet) {
312
339
connectionName = view.connectionName
313
340
}
@@ -316,17 +343,20 @@ class UtplsqlController implements Controller {
316
343
val parser =newUtplsqlParser(component.text, if (preferences.checkRunUtplsqlTest) {Connections.instance.getConnection(connectionName)} else {null}, owner)
317
344
val position = component.caretPosition
318
345
val path = parser.getPathAt(position)
319
-
val reporter =newCodeCoverageReporter(path.pathList, connectionName)
320
-
reporter.runAsync
346
+
val object = parser.getObjectAt(position)
347
+
val includeObjectList = dependencies(object.name, connectionName)
348
+
val reporter =newCodeCoverageReporter(path.pathList, includeObjectList, connectionName)
0 commit comments