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

Better CMocka asserts #287

Merged
merged 4 commits into from
Sep 20, 2022
Merged

Better CMocka asserts #287

merged 4 commits into from
Sep 20, 2022

Conversation

aloisklink
Copy link
Contributor

Replaces all usages of:

Replaces the use of assert_int_equal(0, memcmp(...)) with
the more specific assert_memory_equal()
Instead of using assert_in_equal(0, strcmp(...)), we should use the
more specific assert_string_equal() macro.
@codecov
Copy link

codecov bot commented Sep 20, 2022

Codecov Report

Merging #287 (d5e38a8) into main (bcc1c6c) will not change coverage.
The diff coverage is 92.59%.

❗ Current head d5e38a8 differs from pull request most recent head af4c7e1. Consider uploading reports for the commit af4c7e1 to get more accurate results

@@           Coverage Diff           @@
##             main     #287   +/-   ##
=======================================
  Coverage   49.04%   49.04%           
=======================================
  Files         116      116           
  Lines       18495    18495           
=======================================
  Hits         9070     9070           
  Misses       9425     9425           
Impacted Files Coverage Δ
tests/utils/test_iface_mapper.c 0.00% <0.00%> (ø)
tests/supervisor/test_bridge_list.c 100.00% <100.00%> (ø)
tests/capture/middlewares/test_packet_queue.c 100.00% <0.00%> (ø)
tests/utils/test_os.c 98.24% <0.00%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mereacre mereacre merged commit d5431f6 into main Sep 20, 2022
@mereacre mereacre deleted the test/better-cmocka-asserts branch September 20, 2022 13:10
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.

None yet

2 participants