Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for MaxCountScale (0.32 sec)

  1. src/testing/quick/quick.go

    type Config struct {
    	// MaxCount sets the maximum number of iterations.
    	// If zero, MaxCountScale is used.
    	MaxCount int
    	// MaxCountScale is a non-negative scale factor applied to the
    	// default maximum.
    	// A count of zero implies the default, which is usually 100
    	// but can be set by the -quickchecks flag.
    	MaxCountScale float64
    	// Rand specifies a source of random numbers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:47 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. src/image/color/color_test.go

    			if got, want := sqDiff(x, y), orig(x, y); got != want {
    				t.Fatalf("sqDiff(%#x, %#x): got %d, want %d", x, y, got, want)
    			}
    		}
    	}
    	if err := quick.CheckEqual(orig, sqDiff, &quick.Config{MaxCountScale: 10}); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 05:47:09 UTC 2017
    - 890 bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/scalar_test.go

    // given factor if the -short flag is not set.
    func quickCheckConfig(slowScale int) *quick.Config {
    	cfg := new(quick.Config)
    	if !testing.Short() {
    		cfg.MaxCountScale = float64(slowScale)
    	}
    	return cfg
    }
    
    var scOneBytes = [32]byte{1}
    var scOne, _ = new(Scalar).SetCanonicalBytes(scOneBytes[:])
    var scMinusOne, _ = new(Scalar).SetCanonicalBytes(scalarMinusOneBytes[:])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/math/big/alias_test.go

    				scale /= 5
    			case "Rand":
    				scale /= 10
    			case "Exp-XZ", "Exp-XY", "Exp-YZ":
    				scale /= 50
    			case "ModSqrt":
    				scale /= 500
    			}
    			if err := quick.Check(f, &quick.Config{
    				MaxCountScale: scale,
    			}); err != nil {
    				t.Error(err)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe_test.go

    // given factor if the -short flag is not set.
    func quickCheckConfig(slowScale int) *quick.Config {
    	cfg := new(quick.Config)
    	if !testing.Short() {
    		cfg.MaxCountScale = float64(slowScale)
    	}
    	return cfg
    }
    
    func generateFieldElement(rand *mathrand.Rand) Element {
    	const maskLow52Bits = (1 << 52) - 1
    	return Element{
    		rand.Uint64() & maskLow52Bits,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  6. src/image/draw/draw_test.go

    			if got, want := sqDiff(x, y), orig(x, y); got != want {
    				t.Fatalf("sqDiff(%#x, %#x): got %d, want %d", x, y, got, want)
    			}
    		}
    	}
    	if err := quick.CheckEqual(orig, sqDiff, &quick.Config{MaxCountScale: 10}); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 26K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"CheckEqualError.Out2", Field, 0},
    		{"CheckError", Type, 0},
    		{"CheckError.Count", Field, 0},
    		{"CheckError.In", Field, 0},
    		{"Config", Type, 0},
    		{"Config.MaxCount", Field, 0},
    		{"Config.MaxCountScale", Field, 0},
    		{"Config.Rand", Field, 0},
    		{"Config.Values", Field, 0},
    		{"Generator", Type, 0},
    		{"SetupError", Type, 0},
    		{"Value", Func, 0},
    	},
    	"testing/slogtest": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg testing/quick, type CheckError struct, In []interface{}
    pkg testing/quick, type Config struct
    pkg testing/quick, type Config struct, MaxCount int
    pkg testing/quick, type Config struct, MaxCountScale float64
    pkg testing/quick, type Config struct, Rand *rand.Rand
    pkg testing/quick, type Config struct, Values func([]reflect.Value, *rand.Rand)
    pkg testing/quick, type Generator interface { Generate }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top