Skip to content

Commit bfff42b

Browse files
committed
Clean up code a bit
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 parent ec69d9c commit bfff42b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

model/metric_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func TestValidationScheme_String(t *testing.T) {
107107
{
108108
name: "Unset",
109109
scheme: UnsetValidation,
110-
want: `unset`,
110+
want: "unset",
111111
},
112112
{
113113
name: "Legacy",
@@ -165,7 +165,7 @@ func TestValidationScheme_UnmarshalYAML(t *testing.T) {
165165
}{
166166
{
167167
name: "Unset empty input",
168-
input: ``,
168+
input: "",
169169
want: UnsetValidation,
170170
},
171171
{
@@ -175,17 +175,17 @@ func TestValidationScheme_UnmarshalYAML(t *testing.T) {
175175
},
176176
{
177177
name: "Legacy",
178-
input: `legacy`,
178+
input: "legacy",
179179
want: LegacyValidation,
180180
},
181181
{
182182
name: "UTF8",
183-
input: `utf8`,
183+
input: "utf8",
184184
want: UTF8Validation,
185185
},
186186
{
187187
name: "Invalid",
188-
input: `invalid`,
188+
input: "invalid",
189189
wantError: errors.New(`unrecognized ValidationScheme: "invalid"`),
190190
},
191191
} {

0 commit comments

Comments
 (0)