Skip to content

PR: Move panics under `must` functions & add a linter

Codecov / codecov/patch succeeded Oct 15, 2024 in 1s

78.41% of diff hit (target 80.04%)

View this Pull Request on Codecov

78.41% of diff hit (target 80.04%)

Annotations

Check warning on line 102 in http/handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler.go#L102

Added line #L102 was not covered by tests

Check warning on line 107 in http/handler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler.go#L107

Added line #L107 was not covered by tests

Check warning on line 92 in http/handler_collection.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_collection.go#L92

Added line #L92 was not covered by tests

Check warning on line 214 in http/handler_collection.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_collection.go#L214

Added line #L214 was not covered by tests

Check warning on line 23 in http/handler_lens.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_lens.go#L23

Added line #L23 was not covered by tests

Check warning on line 34 in http/handler_lens.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_lens.go#L34

Added line #L34 was not covered by tests

Check warning on line 51 in http/handler_lens.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_lens.go#L51

Added line #L51 was not covered by tests

Check warning on line 76 in http/handler_lens.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_lens.go#L76

Added line #L76 was not covered by tests

Check warning on line 255 in http/handler_store.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_store.go#L255

Added line #L255 was not covered by tests

Check warning on line 266 in http/handler_store.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_store.go#L266

Added line #L266 was not covered by tests

Check warning on line 45 in http/handler_tx.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_tx.go#L44-L45

Added lines #L44 - L45 were not covered by tests

Check warning on line 74 in http/handler_tx.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_tx.go#L73-L74

Added lines #L73 - L74 were not covered by tests

Check warning on line 103 in http/handler_tx.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/handler_tx.go#L102-L103

Added lines #L102 - L103 were not covered by tests