(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestScanSnapshotErr(t *testing.T) { |
| 27 | t.Parallel() |
| 28 | data := []*Opts{ |
| 29 | nil, |
| 30 | {LocalGOROOT: "\\"}, |
| 31 | {LocalGOPATHs: []string{"\\"}}, |
| 32 | } |
| 33 | for _, opts := range data { |
| 34 | if _, _, err := ScanSnapshot(&bytes.Buffer{}, io.Discard, opts); err == nil { |
| 35 | t.Fatal("expected error") |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func TestScanSnapshotSynthetic(t *testing.T) { |
| 41 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…