Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,164 for casePC (0.14 sec)

  1. src/runtime/tracetime.go

    // platforms where osHasLowResClock is true, because the system clock
    // isn't granular enough to get useful information out of a trace in
    // many cases.
    //
    // This makes absolute values of timestamp diffs smaller, and so they are
    // encoded in fewer bytes.
    //
    // The target resolution in all cases is 64 nanoseconds.
    // This is based on the fact that fundamentally the execution tracer won't emit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils_test.go

    func TestReduceErrs(t *testing.T) {
    	canceledErrs := make([]error, 0, 5)
    	for i := 0; i < 5; i++ {
    		canceledErrs = append(canceledErrs, fmt.Errorf("error %d: %w", i, context.Canceled))
    	}
    	// List all of all test cases to validate various cases of reduce errors.
    	testCases := []struct {
    		errs        []error
    		ignoredErrs []error
    		err         error
    	}{
    		// Validate if have reduced properly.
    		{[]error{
    			errDiskNotFound,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/internal/trace/internal/oldtrace/order.go

    	// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19).
    
    	switch ev.Type {
    	case EvGoCreate:
    		g = ev.Args[0]
    		init = gState{0, gDead}
    		next = gState{1, gRunnable}
    		return
    	case EvGoWaiting, EvGoInSyscall:
    		g = ev.G
    		init = gState{1, gRunnable}
    		next = gState{2, gWaiting}
    		return
    	case EvGoStart, EvGoStartLabel:
    		g = ev.G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/auth-handler_test.go

    	testCases := []struct {
    		inputQueryKey   string
    		inputQueryValue string
    		expectedResult  bool
    	}{
    		// Test case - 1.
    		// Test case with query key "AWSAccessKeyId" set.
    		{"", "", false},
    		// Test case - 2.
    		{"AWSAccessKeyId", "", true},
    		// Test case - 3.
    		{"X-Amz-Content-Sha256", "", false},
    	}
    
    	for i, testCase := range testCases {
    		// creating an input HTTP request.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    func cmp(a Index, b []byte) int {
    	n := len(a)
    	if len(b) < n {
    		n = len(b)
    	}
    	for i, c := range b[:n] {
    		switch {
    		case a[i] > c:
    			return 1
    		case a[i] < c:
    			return -1
    		}
    	}
    	switch {
    	case len(a) < len(b):
    		return -1
    	case len(a) > len(b):
    		return 1
    	}
    	return 0
    }
    
    // Compare returns an integer comparing a and b lexicographically.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. pilot/pkg/server/instance_test.go

    		completed: atomic.NewBool(false),
    		d:         d,
    		stop:      stop,
    	}
    }
    
    func (c *fakeComponent) Run(stop <-chan struct{}) error {
    	c.started.Store(true)
    	select {
    	case <-time.After(c.d):
    	case <-c.stop: // ignore incoming stop; for test purposes we use our own stop
    	}
    	c.completed.Store(true)
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. pilot/pkg/leaderelection/leaderelection_test.go

    			for _, comp := range []string{"location", "simple"} {
    				cases = append(cases, instance{
    					revision: rev,
    					remote:   loc,
    					comp:     comp,
    				})
    			}
    		}
    	}
    
    	for _, start := range cases {
    		t.Run(fmt.Sprint(start), func(t *testing.T) {
    			checkCycles(t, start, cases, nil)
    		})
    	}
    }
    
    func alreadyHit(cur instance, chain []instance) bool {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/under.go

    // If x and y are identical channels but for their direction
    // and one of them is unrestricted, match returns the channel
    // with the restricted direction.
    // In all other cases, match returns nil.
    func match(x, y Type) Type {
    	// Common case: we don't have channels.
    	if Identical(x, y) {
    		return x
    	}
    
    	// We may have channels that differ in direction only.
    	if x, _ := x.(*Chan); x != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 22:34:27 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/version_test.go

    				}
    				return "Unknown test case key!", errors.New("unknown test case key")
    			}
    
    			ver, err := kubernetesReleaseVersion(k, fileFetcher)
    			t.Logf("Key: %q. Result: %q, Error: %v", k, ver, err)
    			switch {
    			case err != nil && !v.ErrorExpected:
    				t.Errorf("kubernetesReleaseVersion: unexpected error for %q. Error: %+v", k, err)
    			case err == nil && v.ErrorExpected:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 03:30:51 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute1StaticInstrumentationInDynamicGroovyWithoutIndyIntegrationTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.internal.cc.impl.inputs.process.instrument
    
    /**
     * Test cases for single-argument {@code ProcessGroovyMethods.execute} with static import (Groovy produces a special byte code in this case):
     * <pre>
     *     import static org.codehaus.groovy.runtime.ProcessGroovyMethods.execute
     *     execute("echo 123")
     *     execute(["echo", "123"])
     * </pre>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
Back to top