MCPcopy Index your code
hub / github.com/maruel/panicparse / TestScanSnapshotErr

Function TestScanSnapshotErr

stack/context_test.go:26–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func 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
40func TestScanSnapshotSynthetic(t *testing.T) {
41 t.Parallel()

Callers

nothing calls this directly

Calls 1

ScanSnapshotFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…