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

Add test coverage for SetNode #849

Merged
merged 2 commits into from
May 31, 2023
Merged

Add test coverage for SetNode #849

merged 2 commits into from
May 31, 2023

Conversation

wenovus
Copy link
Collaborator

@wenovus wenovus commented May 31, 2023

The behaviour when a key is already present is to append.

The other option is to treat telemetry-atomic nodes as leaves and therefore erase it prior to unmarshalling. However I don't think SetNode is the right layer to implement this because the atomic flag is at the Notification proto and not the TypedValue proto. Append helps with higher level handling (e.g. UnmarshalNotifications) since it allows piecewise unmarshalling to happen.

@wenovus wenovus requested a review from DanG100 May 31, 2023 01:54
@coveralls
Copy link

Coverage Status

Coverage: 89.676%. Remained the same when pulling 899a9cc on setnode-orderedmap into cad488f on master.

@wenovus wenovus merged commit 3200bea into master May 31, 2023
@wenovus wenovus deleted the setnode-orderedmap branch May 31, 2023 23:47
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