Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 322 for hit (0.02 sec)

  1. pkg/dns/client/dns_test.go

    	s := initDNS(t, false)
    	t.Run("via-agent-cache-miss", func(b *testing.B) {
    		bench(b, s.dnsProxies[0].Address(), "www.bing.com.")
    	})
    	t.Run("via-agent-cache-hit-fqdn", func(b *testing.B) {
    		bench(b, s.dnsProxies[0].Address(), "www.google.com.")
    	})
    	t.Run("via-agent-cache-hit-cname", func(b *testing.B) {
    		bench(b, s.dnsProxies[0].Address(), "www.google.com.ns1.svc.cluster.local.")
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutorTest.groovy

                1 * store.put(keyHash, _)
                snapshot
            }
            1 * store.getIfPresent(_) >> null
            0 * _
            result.length == 6
        }
    
        void "validates entries on cache hit"() {
            withToUpperCaseRule()
            def id = new Id('Alicia')
    
            when:
            execute(id)
    
            then:
            1 * valueSnapshotter.snapshot(_) >> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. src/encoding/gob/decoder.go

    		if dec.buf.Len() == 0 {
    			if !dec.recvMessage() {
    				// We can only return io.EOF if the input was empty.
    				// If we read one or more type spec messages,
    				// require a data item message to follow.
    				// If we hit an EOF before that, then give ErrUnexpectedEOF.
    				if !firstMessage && dec.err == io.EOF {
    					dec.err = io.ErrUnexpectedEOF
    				}
    				break
    			}
    		}
    		// Receive a type id.
    		id := typeId(dec.nextInt())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

       * size to reach 0, causing an infinite loop.
       */
      public void testCopyWithReaderThatDoesNotFillBuffer() throws IOException {
        // need a long enough string for the buffer to hit 0 remaining before the copy completes
        String string = Strings.repeat("0123456789", 100);
        StringBuilder b = new StringBuilder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharStreamsTest.java

       * size to reach 0, causing an infinite loop.
       */
      public void testCopyWithReaderThatDoesNotFillBuffer() throws IOException {
        // need a long enough string for the buffer to hit 0 remaining before the copy completes
        String string = Strings.repeat("0123456789", 100);
        StringBuilder b = new StringBuilder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. src/sync/map.go

    // Otherwise, it stores and returns the given value.
    // The loaded result is true if the value was loaded, false if stored.
    func (m *Map) LoadOrStore(key, value any) (actual any, loaded bool) {
    	// Avoid locking if it's a clean hit.
    	read := m.loadReadOnly()
    	if e, ok := read.m[key]; ok {
    		actual, loaded, ok := e.tryLoadOrStore(value)
    		if ok {
    			return actual, loaded
    		}
    	}
    
    	m.mu.Lock()
    	read = m.loadReadOnly()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ConcurrentToolingApiIntegrationSpec.groovy

                    //a bit more stress:
                    connection.newBuild().forTasks('tasks').run()
                } catch (Exception e) {
                    throw new RuntimeException("""We might have hit a concurrency problem.
    See the full stacktrace and the list of causes to investigate""", e);
                }
            }
        }
    
        def "can share connection when running build"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    		line = strings.TrimSpace(line)
    		if !strings.HasPrefix(line, "//") && line != "" {
    			break
    		}
    		if line == "" {
    			plusBuildCutoff = offset
    		}
    	}
    
    	// Process each line.
    	// Must stop once we hit goBuildOK == false
    	text = fullText
    	check.inStar = false
    	for text != "" {
    		i := strings.Index(text, "\n")
    		if i < 0 {
    			i = len(text)
    		} else {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/reflect/benchmark_test.go

    	}
    	if ptrToThis.Int() != 0 {
    		b.Fatalf("%v.ptrToThis unexpectedly nonzero", t)
    	}
    	b.ResetTimer()
    
    	// Now benchmark calling PointerTo on it: we'll have to hit the ptrMap cache on
    	// every call.
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			PointerTo(t)
    		}
    	})
    }
    
    type B1 struct {
    	X int
    	Y int
    	Z int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  10. src/net/timeout_test.go

    	// maxDynamicTimeout is the maximum timeout to attempt for
    	// tests that automatically increase timeouts until success.
    	//
    	// This should be a strict upper bound on the latency required to hit a
    	// timeout accurately, even on a slow or heavily-loaded machine. If a test
    	// would increase the timeout beyond this value, the test fails.
    	maxDynamicTimeout = 4 * time.Second
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
Back to top