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

Make the main loop of the DynamicHoneyBadger test more readable #373

Open
vkomenda opened this issue Jan 3, 2019 · 5 comments
Open

Make the main loop of the DynamicHoneyBadger test more readable #373

vkomenda opened this issue Jan 3, 2019 · 5 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@vkomenda
Copy link
Contributor

vkomenda commented Jan 3, 2019

The main loop of net_dynamic_hb apparently has too many internal loops. Clippy throws an error cyclomatic_complexity if not is silenced. The loop has to be split into several functions accessing shared test state.

@vkomenda vkomenda added the good first issue Good for newcomers label Jan 3, 2019
@trendsetter37
Copy link

Is this issue outdated? It seems as though net_dynamic_hd has been updated/removed.

@afck afck changed the title Make the main loop of net_dynamic_hb more readable Make the main loop of the DynamicHoneyBadger test more readable Jul 5, 2019
@afck
Copy link
Collaborator

afck commented Jul 5, 2019

It has been replaced/renamed, but it's still spaghetti code.

@trendsetter37
Copy link

I'll take a wack at this.

@trendsetter37
Copy link

trendsetter37 commented Aug 11, 2019

@afck is do_drop_and_re_add function still invoked when running cargo test? I didn't get any errors/warnings when removing the clippy_cyclomatic_complexity flag. Also is there an IRC or slack channel associated with this project?

Edit: I see. I need to install clippy and use ci.sh file.

@afck
Copy link
Collaborator

afck commented Aug 12, 2019

Yes, that's a clippy lint. Also, cargo clippy doesn't check the test code. You need to use cargo clippy --tests or cargo clippy --all-targets for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants