Conversation
Pull Request Test Coverage Report for Build 21998536178Details
💛 - Coveralls |
|
this looks awesome to me ... but I ain't go expert, although I cannot spot anything obviously wrong with it ... are you confident this is going to play well between Go and others PLs too? That's my only concern, as in: it should be able to serialize correctly for Python/JS/PHP too, it should be able to deserialize from those PLs ... can we maybe automate such test based on the same test you do for identity preserved over "roundtrips"? Anyway, thanks a lot and let's ship it sooner than later 🥳 |
|
Sure.
Then we can compare input/output in all implementations |
|
I think we can create a reference file without spaces and use it to roundtrip back and forward and if the outcome is identical we’ll be good? just trying to keep it as simple as possible |
|
Yes a reference file would be great. We can also download some external very nested json and use them for testing during ci/cd. Let me add a cli to the go project real quick and I past some code here. |
I think if we do this for all php, js, ... version to have expected sha256 inputs and outputs we ensure compatibility. (let's get rid of the test-dummy.sh - i would love to just have a tests.json) [
{
"file": "file://tests/foo.json",
"normal_sha256": "....",
"flattened_sha256": "...."
},
{
"file": "https:://somewhere/extenal/foo.json,
"normal_sha256": "....",
"flattened_sha256": "...."
}
]And ever version needs to run this as integration. |
I finally finished my golang port.
Please test.