( container: UrlSegmentGroup, containee: UrlSegmentGroup, matrixParams: ParamMatchOptions, )
| 173 | } |
| 174 | |
| 175 | function equalSegmentGroups( |
| 176 | container: UrlSegmentGroup, |
| 177 | containee: UrlSegmentGroup, |
| 178 | matrixParams: ParamMatchOptions, |
| 179 | ): boolean { |
| 180 | if (!equalPath(container.segments, containee.segments)) return false; |
| 181 | if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) { |
| 182 | return false; |
| 183 | } |
| 184 | if (container.numberOfChildren !== containee.numberOfChildren) return false; |
| 185 | for (const c in containee.children) { |
| 186 | if (!container.children[c]) return false; |
| 187 | if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams)) |
| 188 | return false; |
| 189 | } |
| 190 | return true; |
| 191 | } |
| 192 | |
| 193 | function containsParams(container: Params, containee: Params): boolean { |
| 194 | return ( |
nothing calls this directly
no test coverage detected