MCPcopy Index your code
hub / github.com/klauspost/compress / TestNewDecoderBig

Function TestNewDecoderBig

zstd/decoder_test.go:482–500  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

480}
481
482func TestNewDecoderBig(t *testing.T) {
483 if testing.Short() || isRaceTest {
484 t.SkipNow()
485 }
486 file := "testdata/zstd-10kfiles.zip"
487 if _, err := os.Stat(file); os.IsNotExist(err) {
488 t.Skip("To run extended tests, download https://files.klauspost.com/compress/zstd-10kfiles.zip \n" +
489 "and place it in " + file + "\n" + "Running it requires about 5GB of RAM")
490 }
491 newFn := func() (*Decoder, error) {
492 return NewReader(nil)
493 }
494 testDecoderFile(t, file, newFn)
495 dec, err := NewReader(nil)
496 if err != nil {
497 t.Fatal(err)
498 }
499 testDecoderDecodeAll(t, file, dec)
500}
501
502func TestNewDecoderBigFile(t *testing.T) {
503 if testing.Short() || isRaceTest {

Callers

nothing calls this directly

Calls 6

testDecoderFileFunction · 0.85
testDecoderDecodeAllFunction · 0.85
SkipMethod · 0.80
FatalMethod · 0.80
NewReaderFunction · 0.70
StatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…