pkg/cwhub - refact Downloader #3382
66.88% of diff hit (target 0.00%)
View this Pull Request on Codecov
66.88% of diff hit (target 0.00%)
Annotations
Check warning on line 117 in cmd/crowdsec-cli/cliconsole/console.go
codecov / codecov/patch
cmd/crowdsec-cli/cliconsole/console.go#L117
Added line #L117 was not covered by tests
Check warning on line 399 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L399
Added line #L399 was not covered by tests
Check warning on line 414 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L414
Added line #L414 was not covered by tests
Check warning on line 504 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L504
Added line #L504 was not covered by tests
Check warning on line 515 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L515
Added line #L515 was not covered by tests
Check warning on line 546 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L546
Added line #L546 was not covered by tests
Check warning on line 571 in cmd/crowdsec-cli/cliitem/item.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/item.go#L571
Added line #L571 was not covered by tests
Check warning on line 40 in cmd/crowdsec-cli/cliitem/suggest.go
codecov / codecov/patch
cmd/crowdsec-cli/cliitem/suggest.go#L40
Added line #L40 was not covered by tests
Check warning on line 62 in cmd/crowdsec-cli/clilapi/context.go
codecov / codecov/patch
cmd/crowdsec-cli/clilapi/context.go#L62
Added line #L62 was not covered by tests
Check warning on line 496 in cmd/crowdsec-cli/clisupport/support.go
codecov / codecov/patch
cmd/crowdsec-cli/clisupport/support.go#L496
Added line #L496 was not covered by tests
Check warning on line 58 in cmd/crowdsec-cli/config_restore.go
codecov / codecov/patch
cmd/crowdsec-cli/config_restore.go#L58
Added line #L58 was not covered by tests
Check warning on line 88 in cmd/crowdsec/serve.go
codecov / codecov/patch
cmd/crowdsec/serve.go#L88
Added line #L88 was not covered by tests
Check warning on line 47 in pkg/cwhub/download.go
codecov / codecov/patch
pkg/cwhub/download.go#L46-L47
Added lines #L46 - L47 were not covered by tests
Check warning on line 73 in pkg/cwhub/download.go
codecov / codecov/patch
pkg/cwhub/download.go#L72-L73
Added lines #L72 - L73 were not covered by tests
Check warning on line 101 in pkg/cwhub/download.go
codecov / codecov/patch
pkg/cwhub/download.go#L97-L101
Added lines #L97 - L101 were not covered by tests
Check warning on line 120 in pkg/cwhub/download.go
codecov / codecov/patch
pkg/cwhub/download.go#L103-L120
Added lines #L103 - L120 were not covered by tests
Check warning on line 123 in pkg/cwhub/download.go
codecov / codecov/patch
pkg/cwhub/download.go#L123
Added line #L123 was not covered by tests
Check warning on line 67 in pkg/cwhub/fetch.go
codecov / codecov/patch
pkg/cwhub/fetch.go#L67
Added line #L67 was not covered by tests
Check warning on line 96 in pkg/hubtest/hubtest.go
codecov / codecov/patch
pkg/hubtest/hubtest.go#L96
Added line #L96 was not covered by tests
Check warning on line 133 in pkg/hubtest/hubtest.go
codecov / codecov/patch
pkg/hubtest/hubtest.go#L133
Added line #L133 was not covered by tests
Check warning on line 215 in pkg/hubtest/hubtest_item.go
codecov / codecov/patch
pkg/hubtest/hubtest_item.go#L215
Added line #L215 was not covered by tests