Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a couple util/unmarshalling functions for ordered maps #843

Merged
merged 8 commits into from
May 25, 2023

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented May 25, 2023

Writing to an ordered list will error out if one already exists since it is expected to receive the whole of the ordered list elements as a whole instead of in chunks. If we later decide this is not the right behaviour we can relax the constraint.

wenovus added 4 commits May 24, 2023 17:26
…se it

Ideally we generate this instead of handcrafting/copying it as it is
subject to change and we want to be able to catch that.

However the problem is because the generated code imports from ygot, it
creates a circular dependency. There might be a way to address it but it
should be made in a separate PR. This PR works around this by having a
handcrafted copy that doesn't import from ygot.

Later I will take a look at whether it's possible to move those ygot
definitions to a base package and doing an alias.
Just have one unit test use it for now. Converting is very tedious since
it requires all tests to move to a `_test` package to avoid circular
dependency.
@wenovus wenovus requested a review from DanG100 May 25, 2023 17:16
@coveralls
Copy link

coveralls commented May 25, 2023

Coverage Status

Coverage: 89.95% (-0.03%) from 89.982% when pulling fdda007 on util-orderedmaps1 into d9dedf8 on master.

Base automatically changed from gencode-to-testutil to master May 25, 2023 17:57
@wenovus wenovus merged commit 6cd5d97 into master May 25, 2023
@wenovus wenovus deleted the util-orderedmaps1 branch May 25, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants