Skip to content

Commit c3c235a

Browse files
remove test for uuid map
1 parent 3a1f536 commit c3c235a

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

cmd/init_test.go

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -283,59 +283,3 @@ func TestInitCommand_NoLanguagesDetected(t *testing.T) {
283283
// Verify that only Trivy configuration file was created
284284
assert.FileExists(t, filepath.Join(toolsConfigDir, "trivy.yaml"))
285285
}
286-
287-
func TestToolNameFromUUID(t *testing.T) {
288-
tests := []struct {
289-
name string
290-
uuid string
291-
expected string
292-
}{
293-
{
294-
name: "ESLint",
295-
uuid: ESLint,
296-
expected: "eslint",
297-
},
298-
{
299-
name: "Trivy",
300-
uuid: Trivy,
301-
expected: "trivy",
302-
},
303-
{
304-
name: "PyLint",
305-
uuid: PyLint,
306-
expected: "pylint",
307-
},
308-
{
309-
name: "PMD",
310-
uuid: PMD,
311-
expected: "pmd",
312-
},
313-
{
314-
name: "DartAnalyzer",
315-
uuid: DartAnalyzer,
316-
expected: "dartanalyzer",
317-
},
318-
{
319-
name: "Semgrep",
320-
uuid: Semgrep,
321-
expected: "semgrep",
322-
},
323-
{
324-
name: "Lizard",
325-
uuid: Lizard,
326-
expected: "lizard",
327-
},
328-
{
329-
name: "Unknown UUID",
330-
uuid: "unknown-uuid",
331-
expected: "unknown",
332-
},
333-
}
334-
335-
for _, tt := range tests {
336-
t.Run(tt.name, func(t *testing.T) {
337-
result := toolNameFromUUID(tt.uuid)
338-
assert.Equal(t, tt.expected, result)
339-
})
340-
}
341-
}

0 commit comments

Comments
 (0)