Skip to content

replace if with switch

Codecov / codecov/patch failed Jul 30, 2024 in 1s

38.55% of diff hit (target 82.79%)

View this Pull Request on Codecov

38.55% of diff hit (target 82.79%)

Annotations

Check warning on line 85 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L84-L85

Added lines #L84 - L85 were not covered by tests

Check warning on line 125 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L118-L125

Added lines #L118 - L125 were not covered by tests

Check warning on line 133 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L128-L133

Added lines #L128 - L133 were not covered by tests

Check warning on line 135 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L135

Added line #L135 was not covered by tests

Check warning on line 142 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L138-L142

Added lines #L138 - L142 were not covered by tests

Check warning on line 147 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L144-L147

Added lines #L144 - L147 were not covered by tests

Check warning on line 149 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L149

Added line #L149 was not covered by tests

Check warning on line 165 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L153-L165

Added lines #L153 - L165 were not covered by tests

Check warning on line 168 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L168

Added line #L168 was not covered by tests

Check warning on line 185 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L184-L185

Added lines #L184 - L185 were not covered by tests

Check warning on line 199 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L194-L199

Added lines #L194 - L199 were not covered by tests

Check warning on line 208 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L202-L208

Added lines #L202 - L208 were not covered by tests

Check warning on line 216 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L210-L216

Added lines #L210 - L216 were not covered by tests

Check warning on line 227 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L219-L227

Added lines #L219 - L227 were not covered by tests

Check warning on line 235 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L230-L235

Added lines #L230 - L235 were not covered by tests

Check warning on line 241 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L238-L241

Added lines #L238 - L241 were not covered by tests

Check warning on line 254 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L244-L254

Added lines #L244 - L254 were not covered by tests

Check warning on line 259 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L257-L259

Added lines #L257 - L259 were not covered by tests

Check warning on line 262 in slog/common.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/common.go#L262

Added line #L262 was not covered by tests

Check warning on line 47 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L25-L47

Added lines #L25 - L47 were not covered by tests

Check warning on line 49 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L49

Added line #L49 was not covered by tests

Check warning on line 87 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L85-L87

Added lines #L85 - L87 were not covered by tests

Check warning on line 91 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L89-L91

Added lines #L89 - L91 were not covered by tests

Check warning on line 95 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L93-L95

Added lines #L93 - L95 were not covered by tests

Check warning on line 99 in slog/converter.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

slog/converter.go#L97-L99

Added lines #L97 - L99 were not covered by tests