Skip to content

Commit

Permalink
Update scanner_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillajonathan authored Oct 5, 2023
1 parent 5024ad0 commit 5548089
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pkg/scanner/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ func TestScan(t *testing.T) {
Extension: ".py",
Language: "Python",
},
{
FilePath: filepath.Join(codeSamplesDir, "example.prql"),
Extension: ".prql",
Language: "PRQL",
},
{
FilePath: filepath.Join(codeSamplesDir, "main.rb"),
Extension: ".rb",
Expand Down Expand Up @@ -118,6 +113,11 @@ func TestScan(t *testing.T) {
Extension: ".txt",
Language: "Plain Text",
},
{
FilePath: filepath.Join(codeSamplesDir, "example.prql"),
Extension: ".prql",
Language: "PRQL",
},
}

expected := []scanResult{
Expand Down Expand Up @@ -247,6 +247,13 @@ func TestScan(t *testing.T) {
BlankLines: 13,
Comments: 0,
},
{
Metadata: files[18],
Lines: 5,
CodeLines: 4,
BlankLines: 0,
Comments: 1,
},
}

result, err := scanner.Scan(files)
Expand Down

0 comments on commit 5548089

Please sign in to comment.