(functionText: string)
| 131 | * e.g., "graph.create_node" -> { caller: "graph", method: "create_node" } |
| 132 | */ |
| 133 | export function extractMethodCall(functionText: string): { caller: string; method: string } | null { |
| 134 | const lastDotIndex = functionText.lastIndexOf('.'); |
| 135 | if (lastDotIndex === -1) { |
| 136 | return null; |
| 137 | } |
| 138 | return { |
| 139 | caller: functionText.substring(0, lastDotIndex), |
| 140 | method: functionText.substring(lastDotIndex + 1) |
| 141 | }; |
| 142 | } |
no outgoing calls
no test coverage detected