TaggedDebug can now be derived for core/prod types,
works like normal Debug unless in a debug build
moreover works like normal Debug unless a special init fn is called to force clear separation between test/prod code
no overhead for prod code
tests are in a dedicated file
fixtures are in a dedicated file
each test case is executed via rstest and should be self-explanatory
a couple of bugs fixed (see log|commits)
all dto related conversions reside in one single file in the p2p crate
class definition helper structs needed for parsing the gw-compliant representation moved to the common crate because of usage in both p2p and pathfinder (whilst not really being used in gateway related crates)
Delta is big but most of it is just boilerplate. I would really appreciate looking at the test scenarios and pointing out any obvious misses/lacks there.
Changes:
TaggedDebug
can now be derived for core/prod types,Debug
unless in a debug buildDebug
unless a special init fn is called to force clear separation between test/prod coderstest
and should be self-explanatoryp2p
cratecommon
crate because of usage in bothp2p
andpathfinder
(whilst not really being used in gateway related crates)Delta is big but most of it is just boilerplate. I would really appreciate looking at the test scenarios and pointing out any obvious misses/lacks there.