(match: Match)
| 332 | } |
| 333 | |
| 334 | const movementChange = (match: Match): ApiChange | undefined => { |
| 335 | const beforeName = pathName(match.base) |
| 336 | const afterName = pathName(match.head) |
| 337 | if (beforeName !== afterName) { |
| 338 | return makeChange("api-renamed", match) |
| 339 | } |
| 340 | if (match.base.module !== match.head.module || match.base.path.join(".") !== match.head.path.join(".")) { |
| 341 | return makeChange("api-moved", match) |
| 342 | } |
| 343 | return undefined |
| 344 | } |
| 345 | |
| 346 | const moduleChanges = (base: ApiSnapshot, head: ApiSnapshot): ReadonlyArray<ApiChange> => { |
| 347 | const changes: Array<ApiChange> = [] |
no test coverage detected