Skip to content

add explicit error checks

Codecov / codecov/patch succeeded Jan 16, 2025 in 1s

30.95% of diff hit (target 0.00%)

View this Pull Request on Codecov

30.95% of diff hit (target 0.00%)

Annotations

Check warning on line 78 in cmd/crowdsec-cli/climachine/add.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

cmd/crowdsec-cli/climachine/add.go#L76-L78

Added lines #L76 - L78 were not covered by tests

Check warning on line 328 in pkg/acquisition/modules/appsec/appsec.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/appsec/appsec.go#L326-L328

Added lines #L326 - L328 were not covered by tests

Check warning on line 159 in pkg/acquisition/modules/kubernetesaudit/k8s_audit.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/acquisition/modules/kubernetesaudit/k8s_audit.go#L158-L159

Added lines #L158 - L159 were not covered by tests

Check warning on line 62 in pkg/cticlient/example/fire.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/cticlient/example/fire.go#L61-L62

Added lines #L61 - L62 were not covered by tests

Check warning on line 66 in pkg/cticlient/example/fire.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/cticlient/example/fire.go#L65-L66

Added lines #L65 - L66 were not covered by tests

Check warning on line 154 in pkg/exprhelpers/helpers.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/exprhelpers/helpers.go#L154

Added line #L154 was not covered by tests

Check warning on line 165 in pkg/exprhelpers/helpers.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/exprhelpers/helpers.go#L165

Added line #L165 was not covered by tests

Check warning on line 463 in pkg/leakybucket/manager_load.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/leakybucket/manager_load.go#L461-L463

Added lines #L461 - L463 were not covered by tests

Check warning on line 358 in pkg/parser/node.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/parser/node.go#L357-L358

Added lines #L357 - L358 were not covered by tests

Check warning on line 117 in pkg/parser/stage.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/parser/stage.go#L117

Added line #L117 was not covered by tests

Check warning on line 122 in pkg/parser/stage.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/parser/stage.go#L120-L122

Added lines #L120 - L122 were not covered by tests

Check warning on line 197 in pkg/setup/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/setup/install.go#L196-L197

Added lines #L196 - L197 were not covered by tests