Skip to content

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

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

74.66% of diff hit (target 0.00%)

View this Pull Request on Codecov

74.66% of diff hit (target 0.00%)

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 84 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L84

Added line #L84 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L87

Added line #L87 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L90

Added line #L90 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L92

Added line #L92 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L97

Added line #L97 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L100

Added line #L100 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L102

Added line #L102 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L109

Added line #L109 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L112

Added line #L112 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L115

Added line #L115 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L117

Added line #L117 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L122

Added line #L122 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L125

Added line #L125 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L127

Added line #L127 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L132

Added line #L132 was 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 150 in pkg/database/alertfilter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L150

Added line #L150 was not covered by tests

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

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/database/alertfilter.go#L157

Added line #L157 was 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