delete lint_test.go
TestLintReports lints reports in x/vulndb. It is deleted and will be
kept in x/vulndb.
Change-Id: I29638f19e7dd60a4b7338495e9fc3ad0171c8c9f
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/360439
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
diff --git a/lint_test.go b/lint_test.go
deleted file mode 100644
index a71f874..0000000
--- a/lint_test.go
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2021 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-package main
-
-import (
- "io/ioutil"
- "path/filepath"
- "runtime"
- "strings"
- "testing"
-
- "golang.org/x/vuln/internal/report"
- "gopkg.in/yaml.v2"
-)
-
-func TestLintReports(t *testing.T) {
- if runtime.GOOS == "js" {
- t.Skipf("wasm builder does not have network access")
- }
- if runtime.GOOS == "android" {
- t.Skipf("android builder does not have access to reports/")
- }
-
- reports, err := ioutil.ReadDir("reports")
- if err != nil {
- t.Fatalf("unable to read reports/: %s", err)
- }
-
- for _, rf := range reports {
- if rf.IsDir() {
- continue
- }
- t.Run(rf.Name(), func(t *testing.T) {
- b, err := ioutil.ReadFile(filepath.Join("reports", rf.Name()))
- if err != nil {
- t.Fatalf("unable to read %q: %s", rf.Name(), err)
- }
-
- var r report.Report
- if err := yaml.UnmarshalStrict(b, &r); err != nil {
- t.Fatalf("unable to parse report %q: %s", rf.Name(), err)
- }
-
- if lints := r.Lint(); len(lints) > 0 {
- t.Errorf(strings.Join(lints, "\n"))
- }
- })
- }
-}