MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getTestSelectionForNode

Function getTestSelectionForNode

src/shared/utils/test.ts:129–131  ·  view source on GitHub ↗
(treeNode: GroupNode | TestNode)

Source from the content-addressed store, hash-verified

127}
128
129function getTestSelectionForNode(treeNode: GroupNode | TestNode): TestSelection {
130 return { name: treeNode.name!, isGroup: treeNode instanceof GroupNode, position: treeNode.range?.start };
131}
132
133export function getTestSelectionForOutline(test: TestOutlineInfo): TestSelection {
134 const position = test.range.start;

Callers 1

getTestSelectionForNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected