( id: string | undefined, )
| 305 | id: string | undefined, |
| 306 | ): [path: string | undefined, namespace: string] |
| 307 | function idToPathAndNamespace( |
| 308 | id: string | undefined, |
| 309 | ): [path: string | undefined, namespace: string] { |
| 310 | if (id === undefined) return [undefined, 'file'] |
| 311 | |
| 312 | const namespaceIndex = id.indexOf(':') |
| 313 | if (namespaceIndex >= 0) { |
| 314 | return [id.slice(namespaceIndex + 1), id.slice(0, namespaceIndex)] |
| 315 | } else { |
| 316 | return [id, 'file'] |
| 317 | } |
| 318 | } |
no outgoing calls
no test coverage detected