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 a copy API #211

Merged
merged 8 commits into from
May 28, 2023
Merged

Add a copy API #211

merged 8 commits into from
May 28, 2023

Conversation

tlsa
Copy link
Owner

@tlsa tlsa commented May 28, 2023

This creates a deep clone of the client data by schema.

At the moment the cyaml_copy function is in the public API, however, it may be moved to an internal function before the release of version 2.

It is intended to be used for supporting default values.

@tlsa tlsa added this to the Version 2 milestone May 28, 2023
@codecov
Copy link

codecov bot commented May 28, 2023

Codecov Report

Merging #211 (5286029) into main (e285d74) will increase coverage by 0.22%.
The diff coverage is 98.55%.

@@            Coverage Diff             @@
##             main     #211      +/-   ##
==========================================
+ Coverage   96.88%   97.11%   +0.22%     
==========================================
  Files           9       10       +1     
  Lines        1637     1905     +268     
  Branches      347      407      +60     
==========================================
+ Hits         1586     1850     +264     
- Misses         24       26       +2     
- Partials       27       29       +2     
Flag Coverage Δ
unittests 97.11% <98.55%> (+0.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/util.c 100.00% <ø> (ø)
src/copy.c 98.50% <98.50%> (ø)
src/data.h 86.66% <100.00%> (+3.33%) ⬆️
src/free.c 100.00% <100.00%> (ø)
src/save.c 92.64% <100.00%> (-0.10%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tlsa tlsa merged commit 9b6409c into main May 28, 2023
@tlsa tlsa deleted the tlsa/copy branch May 29, 2023 13:00
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.

1 participant