(a: ToolkitConnectionGroup, b: ToolkitConnectionGroup)
| 236 | const connectionPatternForTool = (tool: ToolRow): string => `${policyPrefixForTool(tool)}.*`; |
| 237 | |
| 238 | const compareConnectionGroups = (a: ToolkitConnectionGroup, b: ToolkitConnectionGroup): number => { |
| 239 | const ownerRank = (owner: Owner) => (owner === "org" ? 0 : 1); |
| 240 | return ( |
| 241 | ownerRank(a.owner) - ownerRank(b.owner) || |
| 242 | a.integration.localeCompare(b.integration) || |
| 243 | a.connection.localeCompare(b.connection) || |
| 244 | a.id.localeCompare(b.id) |
| 245 | ); |
| 246 | }; |
| 247 | |
| 248 | const patternSubsumes = (candidate: string, covered: string): boolean => { |
| 249 | if (candidate === covered) return true; |
nothing calls this directly
no test coverage detected