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)
Tue, Nov 26, 12:44 AM
Unknown Object (File)
Mon, Nov 4, 2:59 PM
Unknown Object (File)
Oct 28 2024, 1:55 PM
Unknown Object (File)
Oct 2 2024, 5:09 AM
Unknown Object (File)
Oct 2 2024, 5:09 AM
Unknown Object (File)
Oct 2 2024, 5:09 AM
Unknown Object (File)
Oct 2 2024, 5:05 AM
Unknown Object (File)
Oct 2 2024, 3:22 AM
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