Skip to content

Function: diffInventories() ​

diffInventories(before, after): InventoryDiff

Compares complete inventories without mutating them. Match ids first, then mutually unique body hashes, narrowing ambiguous hashes by file, suite and dependencies. Remaining ambiguities stay additions and removals. Hashes from different tool versions are not compared; scan both revisions with one version for rename and body detection.

Parameters ​

before ​

Inventory

after ​

Inventory

Returns ​

InventoryDiff

Documentation for test-inventory 0.10.1. Released under the MIT License.