(f *testing.F)
| 435 | } |
| 436 | |
| 437 | func FuzzNewReaderWithPassword(f *testing.F) { |
| 438 | b, err := os.ReadFile(filepath.Join("testdata", "copy.7z")) |
| 439 | if err != nil { |
| 440 | f.Fatal(err) |
| 441 | } |
| 442 | |
| 443 | f.Add(b) |
| 444 | |
| 445 | // At this point we only care about preventing the code from panicking |
| 446 | f.Fuzz(func(_ *testing.T, data []byte) { |
| 447 | _, _ = sevenzip.NewReaderWithPassword(bytes.NewReader(data), int64(len(data)), "") |
| 448 | }) |
| 449 | } |
| 450 | |
| 451 | func ExampleOpenReader() { |
| 452 | r, err := sevenzip.OpenReader(filepath.Join("testdata", "multi.7z.001")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…