Page MenuHomePhabricator

[lib] modify `assertObjectsAreEqual` to return deep differential instead of only one level keys
ClosedPublic

Authored by kamil on May 9 2023, 3:20 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 2:23 PM
Unknown Object (File)
Mon, Apr 22, 2:23 PM
Unknown Object (File)
Mon, Apr 22, 2:23 PM
Unknown Object (File)
Mon, Apr 22, 2:23 PM
Unknown Object (File)
Mon, Apr 22, 2:19 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Unknown Object (File)
Feb 26 2024, 9:38 PM
Subscribers

Details

Summary

Previously, when keys were the same logging wasn't saying much:

image.png (248×287 px, 62 KB)

Now it shows not only missing keys but diff on each object level:

image.png (299×271 px, 77 KB)

Depends on D7753

Test Plan
  1. Check if this not cause errors on equal objects
  2. Check if this shows detailed information what are the differences between objects

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable