Skip to content

refact pkg/database: extract function rollbackOnError(); dry error me…

Codecov / codecov/patch succeeded Oct 25, 2024 in 0s

82.35% of diff hit (target 39.27%)

View this Pull Request on Codecov

82.35% of diff hit (target 39.27%)

Annotations

Check warning on line 29 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L28-L29

Added lines #L28 - L29 were not covered by tests

Check warning on line 37 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L36-L37

Added lines #L36 - L37 were not covered by tests

Check warning on line 51 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L50-L51

Added lines #L50 - L51 were not covered by tests

Check warning on line 142 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L141-L142

Added lines #L141 - L142 were not covered by tests

Check warning on line 168 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L167-L168

Added lines #L167 - L168 were not covered by tests

Check warning on line 197 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L196-L197

Added lines #L196 - L197 were not covered by tests

Check warning on line 201 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L200-L201

Added lines #L200 - L201 were not covered by tests

Check warning on line 216 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L215-L216

Added lines #L215 - L216 were not covered by tests

Check warning on line 220 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L219-L220

Added lines #L219 - L220 were not covered by tests

Check warning on line 246 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L245-L246

Added lines #L245 - L246 were not covered by tests

Check warning on line 37 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L34-L37

Added lines #L34 - L37 were not covered by tests

Check warning on line 39 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L39

Added line #L39 was not covered by tests

Check warning on line 295 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L295

Added line #L295 was not covered by tests

Check warning on line 307 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L307

Added line #L307 was not covered by tests

Check warning on line 349 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L349

Added line #L349 was not covered by tests

Check warning on line 360 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L360

Added line #L360 was not covered by tests

Check warning on line 370 in pkg/database/alerts.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alerts.go#L370

Added line #L370 was not covered by tests

Check warning on line 53 in pkg/types/ip.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/types/ip.go#L53

Added line #L53 was not covered by tests