MCPcopy Create free account
hub / github.com/bodgit/sevenzip / TestFS

Function TestFS

reader_test.go:418–435  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

416}
417
418func TestFS(t *testing.T) {
419 t.Parallel()
420
421 r, err := sevenzip.OpenReader(filepath.Join("testdata", "lzma1900.7z"))
422 if err != nil {
423 t.Fatal(err)
424 }
425
426 defer func() {
427 if err := r.Close(); err != nil {
428 t.Fatal(err)
429 }
430 }()
431
432 if err := fstest.TestFS(r, "Asm/arm/7zCrcOpt.asm", "bin/x64/7zr.exe"); err != nil {
433 t.Fatal(err)
434 }
435}
436
437func FuzzNewReaderWithPassword(f *testing.F) {
438 b, err := os.ReadFile(filepath.Join("testdata", "copy.7z"))

Callers

nothing calls this directly

Calls 2

OpenReaderFunction · 0.92
CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…