Repository navigation
test: read round trips over type, byte and word order, multiplier and boundary value (CAT-09, WOT-07) - #156
Merged
Merged
Conversation
… boundary value (CAT-09, WOT-07) One generated model holds a point for every combination. Each boundary pass serves it with modsim and checks the wire registers, modpoll's export and node-wot 0.9.2 reading the node-wot TD export against values encoded with struct. This replaces the catalog's per-product simulation check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CAT-09 drops the catalog's per-product simulation check; encoding and decoding are tested once here instead. Also WOT-07 step 2.
integration/test_round_trip_matrix.pygenerates one model with a point per combination: 8 numeric raw types × byte and word order (two orders for single-register types) × multiplier (none,0.1,-2; integers up to 32 bits) — 54 points.struct: the wire registers (pymodbus, per point), modpoll's--export, and node-wot 0.9.2 reading thenode-wot-0.9.2TD export for the points it supports (16/32-bit integers, 32/64-bit floats, no multiplier).integration.ymlinstalls the pinned node-wot Consumer; in CI the test requires it.pytest integration: 13 passed in 14 s.