Page MenuHomeSoftware Heritage

Factorize list merges in indexer mappings
ClosedPublic

Authored by vlorentz on Jan 15 2019, 8:22 PM.

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda added a subscriber: douardda.
douardda added inline comments.
swh/indexer/metadata_dictionary.py
163

Why a method? self is unused, so a bare function is fine here.

Which then allows you to very easily write unit tests for ๐Ÿ˜„

This revision now requires changes to proceed.Jan 16 2019, 10:27 AM
  • Move merge_values out of a class and add test.
This revision is now accepted and ready to land.Jan 24 2019, 5:30 PM
This revision was automatically updated to reflect the committed changes.