- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 492 for sanity (0.13 sec)
-
pkg/controller/certificates/signer/signer.go
TTL: s.duration(expirationSeconds), Usages: usages, Backdate: 5 * time.Minute, // this must always be less than the minimum TTL requested by a user (see sanity check requestedDuration below) Short: 8 * time.Hour, // 5 minutes of backdating is roughly 1% of 8 hours Now: now, }) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 03:26:08 UTC 2023 - 10.3K bytes - Viewed (0) -
src/encoding/gob/decoder.go
// license that can be found in the LICENSE file. package gob import ( "bufio" "errors" "internal/saferio" "io" "reflect" "sync" ) // tooBig provides a sanity check for sizes; used in several places. Upper limit // of is 1GB on 32-bit systems, 8GB on 64-bit, allowing room to grow a little // without overflow. const tooBig = (1 << 30) << (^uint(0) >> 62)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.2K bytes - Viewed (0) -
src/os/getwd.go
// General algorithm: find name in parent // and then find name of parent. Each iteration // adds /name to the beginning of dir. dir = "" for parent := ".."; ; parent = "../" + parent { if len(parent) >= 1024 { // Sanity check return "", syscall.ENAMETOOLONG } fd, err := openFileNolog(parent, O_RDONLY, 0) if err != nil { return "", err } for { names, err := fd.Readdirnames(100) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 28 06:28:02 UTC 2020 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go
f, err := writePolicy(t, policyDef) require.NoError(t, err) defer os.Remove(f) policy, err := LoadPolicyFromFile(f) require.NoError(t, err) assert.Len(t, policy.Rules, 3) // Sanity check. if !reflect.DeepEqual(policy, expectedPolicy) { t.Errorf("Unexpected policy! Diff:\n%s", cmp.Diff(policy, expectedPolicy)) } } func TestParsePolicyWithNoVersionOrKind(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 4.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
import java.util.logging.Level; import java.util.logging.Logger; import junit.framework.TestCase; import org.junit.Test; /** * Automatically runs sanity checks against top level classes in the same package of the test that * extends {@code AbstractPackageSanityTests}. Currently sanity checks include {@link * NullPointerTester}, {@link EqualsTester} and {@link SerializableTester}. For example: * * <pre>
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 17.4K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/platform/JUnitPlatformLauncherSessionListenerIntegrationTest.groovy
then: outputContains("Session opened") outputContains("Session closed") when: succeeds "dependencies", "--configuration", "testRuntimeClasspath" then: // Sanity check in case future versions for some reason include a launcher outputDoesNotContain("junit-platform-launcher") } def "creates LauncherSession before loading test classes"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/fuzz/util.go
} } for i, v := range validators { if !v(r) { h.t.Skip(fmt.Sprintf("struct didn't pass validator %d", i)) } } } // BaseCases inserts a few trivial test cases to do a very brief sanity check of a test that relies on []byte inputs func BaseCases(f test.Fuzzer) { for _, c := range [][]byte{ {}, []byte("."), bytes.Repeat([]byte("."), 1000), } { f.Add(c) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 30 15:31:14 UTC 2022 - 3.4K bytes - Viewed (0) -
pkg/serviceaccount/openidmetadata.go
Path: JWKSPath, } jwksURI = u.String() // TODO(mtaufen): I think we can probably expect ExternalAddress is // at most just host + port and skip the sanity check, but want to be // careful until that is confirmed. // Sanity check that the jwksURI we produced is the valid URL we expect. // This is just in case ExternalAddress came in as something weird,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 12 00:23:31 UTC 2020 - 9.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt
) assertThat( second, sameInstance(java.util.logging.Level.WARNING) ) } } @Test fun `Peano sanity check`() { assertThat( Peano.fromInt(0), equalTo(Peano.Z) ) assertThat( Peano.fromInt(1024).toInt(), equalTo(1024) )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/core/constant_loading_test.cc
EagerContext* context() { return ctx_.get(); } private: std::unique_ptr<StaticDeviceMgr> device_mgr_; EagerContextPtr ctx_; }; // Basic sanity check that roundtripping a Tensor->Tensorproto->Constant // preserves values. TEST_P(ConstantTest, CreateConstantSuccessful) { // Get test parameters auto& test_params = GetParam();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 11 01:20:50 UTC 2021 - 4.2K bytes - Viewed (0)