Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testFuzz (0.15 sec)

  1. src/crypto/cipher/fuzz_test.go

    	{
    		"CBC-AES128",
    		commonKey128,
    	},
    	{
    		"CBC-AES192",
    		commonKey192,
    	},
    	{
    		"CBC-AES256",
    		commonKey256,
    	},
    }
    
    var timeout *time.Timer
    
    const datalen = 1024
    
    func TestFuzz(t *testing.T) {
    
    	for _, ft := range cbcAESFuzzTests {
    		c, _ := aes.NewCipher(ft.key)
    
    		cbcAsm := cipher.NewCBCEncrypter(c, commonIV)
    		cbcGeneric := cipher.NewCBCGenericEncrypter(c, commonIV)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 13:39:12 UTC 2022
    - 2K bytes
    - Viewed (0)
  2. src/encoding/gob/codec_test.go

    		&StringStruct{"hello"},
    		&GobTest1{0, &StringStruct{"hello"}},
    	}
    	testFuzz(t, time.Now().UnixNano(), 100, input...)
    }
    
    func TestFuzzRegressions(t *testing.T) {
    	if !*doFuzzTests {
    		t.Skipf("disabled; run with -gob.fuzz to enable")
    	}
    
    	// An instance triggering a type name of length ~102 GB.
    	testFuzz(t, 1328492090837718000, 100, new(float32))
    	// An instance triggering a type name of 1.6 GB.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/testflag.go

    	cf.String("blockprofilerate", "", "")
    	cf.Int("count", 0, "")
    	cf.String("cpu", "", "")
    	cf.StringVar(&testCPUProfile, "cpuprofile", "", "")
    	cf.BoolVar(&testFailFast, "failfast", false, "")
    	cf.StringVar(&testFuzz, "fuzz", "", "")
    	cf.Bool("fullpath", false, "")
    	cf.StringVar(&testList, "list", "", "")
    	cf.StringVar(&testMemProfile, "memprofile", "", "")
    	cf.String("memprofilerate", "", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/test.go

    	testCoverPkgs    []*load.Package                   // -coverpkg flag
    	testCoverProfile string                            // -coverprofile flag
    	testFailFast     bool                              // -failfast flag
    	testFuzz         string                            // -fuzz flag
    	testJSON         bool                              // -json flag
    	testList         string                            // -list flag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_messages_test.go

    						if m.unmarshal(marshaled[0:j]) {
    							t.Errorf("#%d unmarshaled a prefix of length %d of %#v", i, j, m1)
    							break
    						}
    					}
    				}
    			}
    		})
    	}
    }
    
    func TestFuzz(t *testing.T) {
    	rand := rand.New(rand.NewSource(0))
    	for _, m := range tests {
    		for j := 0; j < 1000; j++ {
    			len := rand.Intn(1000)
    			bytes := randomBytes(len, rand)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. src/encoding/pem/pem_test.go

    			continue
    		}
    
    		if got := buf.String(); got != test.out {
    			t.Errorf("#%d: (byte by byte) got:%s want:%s", i, got, test.out)
    		}
    	}
    }
    
    func TestFuzz(t *testing.T) {
    	// PEM is a text-based format. Assume header fields with leading/trailing spaces
    	// or embedded newlines will not round trip correctly and don't need to be tested.
    	isBad := func(s string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:56:00 UTC 2022
    - 23.5K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz.txt

    Roland Shoemaker <******@****.***> 1678919846 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  8. src/math/big/int_test.go

    	for _, a := range sumZZ {
    		arg := a
    		testFunZZ(t, "AddZZ", AddZZ, arg)
    
    		arg = argZZ{a.z, a.y, a.x}
    		testFunZZ(t, "AddZZ symmetric", AddZZ, arg)
    
    		arg = argZZ{a.x, a.z, a.y}
    		testFunZZ(t, "SubZZ", SubZZ, arg)
    
    		arg = argZZ{a.y, a.z, a.x}
    		testFunZZ(t, "SubZZ symmetric", SubZZ, arg)
    	}
    }
    
    func TestProdZZ(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top