Skip to content

refactor(api/vote): refactor vote http endpoint and logic

Codecov / codecov/patch failed Oct 6, 2024 in 1s

0.00% of diff hit (target 32.24%)

View this Pull Request on Codecov

0.00% of diff hit (target 32.24%)

Annotations

Check warning on line 225 in internal/dao/query_find.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/dao/query_find.go#L225

Added line #L225 was not covered by tests

Check warning on line 229 in internal/dao/query_find.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/dao/query_find.go#L228-L229

Added lines #L228 - L229 were not covered by tests

Check warning on line 43 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L41-L43

Added lines #L41 - L43 were not covered by tests

Check warning on line 46 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L45-L46

Added lines #L45 - L46 were not covered by tests

Check warning on line 48 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L48

Added line #L48 was not covered by tests

Check warning on line 54 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L53-L54

Added lines #L53 - L54 were not covered by tests

Check warning on line 62 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L58-L62

Added lines #L58 - L62 were not covered by tests

Check warning on line 65 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L64-L65

Added lines #L64 - L65 were not covered by tests

Check warning on line 70 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L70

Added line #L70 was not covered by tests

Check warning on line 76 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L76

Added line #L76 was not covered by tests

Check warning on line 84 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L80-L84

Added lines #L80 - L84 were not covered by tests

Check warning on line 90 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L89-L90

Added lines #L89 - L90 were not covered by tests

Check warning on line 93 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L92-L93

Added lines #L92 - L93 were not covered by tests

Check warning on line 97 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L97

Added line #L97 was not covered by tests

Check warning on line 103 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L103

Added line #L103 was not covered by tests

Check warning on line 115 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L107-L115

Added lines #L107 - L115 were not covered by tests

Check warning on line 119 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L118-L119

Added lines #L118 - L119 were not covered by tests

Check warning on line 123 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L121-L123

Added lines #L121 - L123 were not covered by tests

Check warning on line 126 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L126

Added line #L126 was not covered by tests

Check warning on line 130 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L130

Added line #L130 was not covered by tests

Check warning on line 133 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L132-L133

Added lines #L132 - L133 were not covered by tests

Check warning on line 136 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L136

Added line #L136 was not covered by tests

Check warning on line 141 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L141

Added line #L141 was not covered by tests

Check warning on line 147 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L144-L147

Added lines #L144 - L147 were not covered by tests

Check warning on line 156 in server/handler/vote.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/handler/vote.go#L153-L156

Added lines #L153 - L156 were not covered by tests