diff options
Diffstat (limited to 'workhorse/internal/lsif_transformer/parser/parser_test.go')
-rw-r--r-- | workhorse/internal/lsif_transformer/parser/parser_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/workhorse/internal/lsif_transformer/parser/parser_test.go b/workhorse/internal/lsif_transformer/parser/parser_test.go index 3a4d72360e2..6887f699cb3 100644 --- a/workhorse/internal/lsif_transformer/parser/parser_test.go +++ b/workhorse/internal/lsif_transformer/parser/parser_test.go @@ -6,7 +6,6 @@ import ( "context" "encoding/json" "io" - "io/ioutil" "os" "path/filepath" "testing" @@ -26,13 +25,13 @@ func TestGenerate(t *testing.T) { } func verifyCorrectnessOf(t *testing.T, tmpDir, fileName string) { - file, err := ioutil.ReadFile(filepath.Join(tmpDir, fileName)) + file, err := os.ReadFile(filepath.Join(tmpDir, fileName)) require.NoError(t, err) var buf bytes.Buffer require.NoError(t, json.Indent(&buf, file, "", " ")) - expected, err := ioutil.ReadFile(filepath.Join("testdata/expected/", fileName)) + expected, err := os.ReadFile(filepath.Join("testdata/expected/", fileName)) require.NoError(t, err) require.Equal(t, string(expected), buf.String()) @@ -43,7 +42,7 @@ func createFiles(t *testing.T, filePath, tmpDir string) { file, err := os.Open(filePath) require.NoError(t, err) - parser, err := NewParser(context.Background(), file, Config{}) + parser, err := NewParser(context.Background(), file) require.NoError(t, err) zipFileName := tmpDir + ".zip" |