Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 744 for Percent (0.14 sec)

  1. src/go/parser/testdata/issue3106.src

    package main
    
    func f() {
    	var m Mutex
    	c := MakeCond(&m)
    	percent := 0
    	const step = 10
    	for i := 0; i < 5; i++ {
    		go func() {
    			for {
    				// Emulates some useful work.
    				time.Sleep(1e8)
    				m.Lock()
    				defer
    				if /* ERROR "expected ';', found 'if'" */ percent == 100 {
    					m.Unlock()
    					break
    				}
    				percent++
    				if percent % step == 0 {
    					//c.Signal()
    				}
    				m.Unlock()
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 829 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_build_simple.txt

    ! stderr '^warning: GOCOVERDIR not set, no coverage data emitted'
    go tool covdata percent -i=data/normal
    stdout  'coverage:.*[1-9][0-9.]+%'
    
    # Program makes a direct call to os.Exit(0).
    env GOCOVERDIR=data/goodexit
    exec ./example.exe goodexit
    ! stderr '^warning: GOCOVERDIR not set, no coverage data emitted'
    go tool covdata percent -i=data/goodexit
    stdout  'coverage:.*[1-9][0-9.]+%'
    
    # Program makes a direct call to os.Exit(1).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/coverage/cformat/fmt_test.go

            my/pack2		coverage: 0.0% of statements
    `)
    	gotPercent := strings.Fields(b2.String())
    	if !slices.Equal(wantPercent, gotPercent) {
    		t.Errorf("emit percent: got:\n%+v\nwant:\n%+v\n",
    			gotPercent, wantPercent)
    	}
    
    	// Percent mode with aggregation.
    	withCoverPkg := " in ./..."
    	if err := fm.EmitPercent(&b3, withCoverPkg, false, true); err != nil {
    		t.Fatalf("EmitPercent returned %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:57 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/route/route_internal_test.go

    				Mirror:           &networking.Destination{},
    				MirrorPercentage: &networking.Percent{Value: 0.0},
    			},
    			want: nil,
    		},
    		{
    			name: "mirrorpercentage with actual percent",
    			route: &networking.HTTPRoute{
    				Mirror:           &networking.Destination{},
    				MirrorPercentage: &networking.Percent{Value: 50.0},
    			},
    			want: &core.RuntimeFractionalPercent{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_test.go

    					"alpha":                         {"alphabetical"},
    					"alph4num3r1c":                  {"alphanumeric"},
    					"percent encoded":               {"percent encoded"},
    					"almost%zzpercent%xxencoded":    {"not quite percent encoded"},
    					"example.com/percent%20encoded": {"url with double percent encoding"},
    					"example.com/今日は":               {"url with unicode"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/driver/html/top.html

              const tr = document.createElement('tr');
              tr.id = row.Id;
              sum += row.Flat;
              addCell(tr, row.FlatFormat);
              addCell(tr, percent(row.Flat));
              addCell(tr, percent(sum));
              addCell(tr, row.CumFormat);
              addCell(tr, percent(row.Cum));
              addCell(tr, row.Name);
              addCell(tr, row.InlineLabel);
              fragment.appendChild(tr);
            }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 14:39:18 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/validation/path/name_test.go

    			ExpectedMsg: "/",
    		},
    		"slash,prefix": {
    			Name:        "foo/bar",
    			Prefix:      true,
    			ExpectedMsg: "/",
    		},
    
    		"percent": {
    			Name:        "foo%bar",
    			Prefix:      false,
    			ExpectedMsg: "%",
    		},
    		"percent,prefix": {
    			Name:        "foo%bar",
    			Prefix:      true,
    			ExpectedMsg: "%",
    		},
    	}
    
    	for k, tc := range testcases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 13:49:29 UTC 2017
    - 3.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            public long used;
            public long committed;
            public long max;
            public short percent;
        }
    
        public static class JvmMemoryNonHeapObj {
            public long used;
            public long committed;
            public long max;
            public short percent;
        }
    
        public static class JvmPoolObj {
            public String key;
            public long count;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/text/scanner/example_test.go

    		fmt.Printf("%s: %s\n", s.Position, s.TokenText())
    	}
    
    	// Output:
    	// default:1:1: %
    	// default:1:2: var1
    	// default:1:7: var2
    	// default:1:11: %
    	//
    	// percent:1:1: %var1
    	// percent:1:7: var2
    	// percent:1:11: %
    }
    
    func Example_mode() {
    	const src = `
        // Comment begins at column 5.
    
    This line should not be included in the output.
    
    /*
    This multiline comment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 02:01:58 UTC 2018
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/covdata/doc.go

    specifics on usage of a given mode):
    
    1. Report percent of statements covered in each profiled package
    
    	$ go tool covdata percent -i=profiledir
    	cov-example/p	coverage: 41.1% of statements
    	main	coverage: 87.5% of statements
    	$
    
    2. Report import paths of packages profiled
    
    	$ go tool covdata pkglist -i=profiledir
    	cov-example/p
    	main
    	$
    
    3. Report percent statements covered by function:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 12:57:25 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top