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

test/unittest: cleanup most vera++ complains #18807

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

kfessel
Copy link
Contributor

@kfessel kfessel commented Oct 27, 2022

Contribution description

cleans up most vera++ complains in unitest

what is left:

./tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c:2109: warning: source file is too long

I tend towards agreeing and so does github

        new_TestFixture(test_ipv6_addr_is_unique_local_unicast_unique_local_unicast_locally_assigned),
./tests-ipv6_addr/tests-ipv6_addr.c:1133: warning: line is longer than 100 characters
        new_TestFixture(test_ipv6_addr_is_unique_local_unicast_unique_local_unicast_not_locally_assigned),
./tests-ipv6_addr/tests-ipv6_addr.c:1134: warning: line is longer than 100 characters
./tests-ztimer64/tests-ztimer64-core.c:1: warning: no copyright notice found
./tests-ztimer64/tests-ztimer64.c:1: warning: no copyright notice found
./tests-ztimer64/tests-ztimer64.h:1: warning: no copyright notice found

there is a license notice but no c holder

Testing procedure

read and let murdock check

Issues/PRs references

in #18744 i saw some static-test complains for unchanged code the comlainee was vera++ -> i ran that on all unittest and cleaned that up

@kfessel kfessel requested a review from miri64 as a code owner October 27, 2022 14:20
@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Oct 27, 2022
@kfessel kfessel added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Oct 27, 2022
@kfessel kfessel requested review from benpicco and chrysn October 27, 2022 14:21
@riot-ci
Copy link

riot-ci commented Oct 27, 2022

Murdock results

✔️ PASSED

c29d2f1 test/unittest: cleanup most vera++ complains

Success Failures Total Runtime
1996 0 1996 06m:30s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@kfessel kfessel force-pushed the p-cleanup-vera-unittest branch from 79cd15e to c29d2f1 Compare October 27, 2022 14:32
@miri64
Copy link
Member

miri64 commented Oct 28, 2022

./tests-gnrc_ipv6_nib/tests-gnrc_ipv6_nib-internal.c:2109: warning: source file is too long

Could probably devided up somehow, if more concise test suites are identified.

@miri64
Copy link
Member

miri64 commented Oct 28, 2022

new_TestFixture(test_ipv6_addr_is_unique_local_unicast_unique_local_unicast_locally_assigned),
./tests-ipv6_addr/tests-ipv6_addr.c:1133: warning: line is longer than 100 characters
new_TestFixture(test_ipv6_addr_is_unique_local_unicast_unique_local_unicast_not_locally_assigned),
./tests-ipv6_addr/tests-ipv6_addr.c:1134: warning: line is longer than 100 characters

Maybe some shorter names by using some abbreviations? _unique_local_unicast_ could be _ulu_. The abbreviation could be explained in a comment within the test case's definition.

@miri64
Copy link
Member

miri64 commented Oct 28, 2022

./tests-ztimer64/tests-ztimer64-core.c:1: warning: no copyright notice found
./tests-ztimer64/tests-ztimer64.c:1: warning: no copyright notice found
./tests-ztimer64/tests-ztimer64.h:1: warning: no copyright notice found

there is a license notice but no c holder

@kaspar030 seems to be the main author in that directory, there is a co-authorship by @fjmolinas too, though. So probably, INRIA, but in the end, they have to say.

PS: Took me a moment to understand what you mean by C-holder...

@kfessel
Copy link
Contributor Author

kfessel commented Oct 28, 2022

@miri64 would you approve to merge this as it is?

Copy link
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miri64 would you approve to merge this as it is?

Yepp yepp, sorry thought your original comments were asking for advice how to handle.

@miri64 miri64 added the Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation label Oct 28, 2022
@kfessel
Copy link
Contributor Author

kfessel commented Oct 28, 2022

@miri64 would you approve to merge this as it is?

Yepp yepp, sorry thought your original comments were asking for advice how to handle.

thank you

it was but i also like to get cleanups in fast since they tend to conflict -> need rebase -> need another n murdock run -> merge and handle in another cleanup is much faster

@kfessel kfessel merged commit 754e272 into RIOT-OS:master Oct 28, 2022
@kaspar030 kaspar030 added this to the Release 2023.01 milestone Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants