- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 312 for newRat (0.15 sec)
-
src/math/big/ratconv_test.go
} } func BenchmarkFloatPrecInexact(b *testing.B) { for _, n := range []int{1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6} { // d := 5^n + 1 d := NewInt(5) p := NewInt(int64(n)) d.Exp(d, p, nil) d.Add(d, NewInt(1)) // r := 1/d var r Rat r.SetFrac(NewInt(1), d) b.Run(fmt.Sprint(n), func(b *testing.B) { for i := 0; i < b.N; i++ { _, ok := r.FloatPrec() if ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 15 22:16:34 UTC 2023 - 19.3K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
revokedCerts := []pkix.RevokedCertificate{ { SerialNumber: big.NewInt(1), RevocationTime: nowUTC, }, { SerialNumber: big.NewInt(42), // RevocationTime should be converted to UTC before marshaling. RevocationTime: now, }, } expectedCerts := []pkix.RevokedCertificate{ { SerialNumber: big.NewInt(1), RevocationTime: nowUTC, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
src/crypto/elliptic/elliptic_test.go
checkIsOnCurveFalse("x+P, y", xx, y) yy.Add(y, p) checkIsOnCurveFalse("x, y+P", x, yy) // Check if the overflow is dropped. xx.Add(x, new(big.Int).Lsh(big.NewInt(1), 535)) checkIsOnCurveFalse("x+2⁵³⁵, y", xx, y) yy.Add(y, new(big.Int).Lsh(big.NewInt(1), 535)) checkIsOnCurveFalse("x, y+2⁵³⁵", x, yy) // Check if P is treated like zero (if possible). // y^2 = x^3 - 3x + B // y = mod_sqrt(x^3 - 3x + B)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 02:00:03 UTC 2023 - 11.6K bytes - Viewed (0) -
src/crypto/x509/oid.go
var ( first = big.NewInt(0) second = big.NewInt(0) ) if _, ok := first.SetString(firstNum, 10); !ok { return errInvalidOID } if _, ok := second.SetString(secondNum, 10); !ok { return errInvalidOID } if first.Cmp(big.NewInt(2)) > 0 || (first.Cmp(big.NewInt(2)) < 0 && second.Cmp(big.NewInt(40)) >= 0) { return errInvalidOID }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 19:10:38 UTC 2024 - 8.3K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclassparameters_test.go
}, "missing-name": { wantFailures: field.ErrorList{field.Required(field.NewPath("metadata", "name"), "name or generateName is required")}, parameters: testResourceClassParameters("", goodName, goodFilters), }, "missing-namespace": { wantFailures: field.ErrorList{field.Required(field.NewPath("metadata", "namespace"), "")}, parameters: testResourceClassParameters(goodName, "", goodFilters), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:21:16 UTC 2024 - 11.8K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclass_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 10.6K bytes - Viewed (0) -
pilot/pkg/model/addressmap_test.go
) func TestAddressMapLen(t *testing.T) { cases := []struct { name string newMap func() *model.AddressMap expected int }{ { name: "nil addresses map", newMap: func() *model.AddressMap { return nil }, expected: 0, }, { name: "empty addresses map", newMap: func() *model.AddressMap { m := model.AddressMap{} m.AddAddressesFor(c1ID, make([]string, 0))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 2.9K bytes - Viewed (0) -
pkg/apis/apps/validation/validation.go
errs = append(errs, apivalidation.ValidateObjectMeta(&revision.ObjectMeta, true, ValidateControllerRevisionName, field.NewPath("metadata"))...) if revision.Data == nil { errs = append(errs, field.Required(field.NewPath("data"), "data is mandatory")) } errs = append(errs, apivalidation.ValidateNonnegativeField(revision.Revision, field.NewPath("revision"))...) return errs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 06 22:11:20 UTC 2024 - 41.4K bytes - Viewed (0) -
cluster/images/etcd/migrate/integration_test.go
startVersion string endVersion string protocol string clientListenUrls string }{ // upgrades {"v3-v3-up", 1, "3.0.17/etcd3", "3.1.12/etcd3", "https", ""}, {"oldest-newest-up", 1, "3.0.17/etcd3", "3.1.12/etcd3", "https", ""}, {"v3-v3-up-with-additional-client-url", 1, "3.0.17/etcd3", "3.1.12/etcd3", "https", "http://127.0.0.1:2379,http://10.128.0.1:2379"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 28 07:33:23 UTC 2022 - 11.4K bytes - Viewed (0) -
src/internal/fuzz/queue.go
elems []any head, len int } func (q *queue) cap() int { return len(q.elems) } func (q *queue) grow() { oldCap := q.cap() newCap := oldCap * 2 if newCap == 0 { newCap = 8 } newElems := make([]any, newCap) oldLen := q.len for i := 0; i < oldLen; i++ { newElems[i] = q.elems[(q.head+i)%oldCap] } q.elems = newElems q.head = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 05 21:02:45 UTC 2022 - 1.5K bytes - Viewed (0)