(operationId: string, group: string)
| 86 | .filter((s) => s.length > 0); |
| 87 | |
| 88 | const deriveLeafSeed = (operationId: string, group: string): string => { |
| 89 | const segments = splitOperationIdSegments(operationId); |
| 90 | if (segments.length > 1) { |
| 91 | const [first, ...rest] = segments; |
| 92 | if ((normalizeGroupSegment(first) ?? first) === group && rest.length > 0) { |
| 93 | return rest.join(" "); |
| 94 | } |
| 95 | } |
| 96 | return operationId; |
| 97 | }; |
| 98 | |
| 99 | const fallbackLeafSeed = (method: string, pathTemplate: string, group: string): string => { |
| 100 | const relevantSegments = pathSegmentsFromTemplate(pathTemplate) |
no test coverage detected