Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for Percent (0.15 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/go/testdata/script/cover_main_import_path.txt

    env SAVEGOCOVERDIR=$GOCOVERDIR
    
    mkdir $WORK/covdata
    env GOCOVERDIR=$WORK/covdata
    exec $WORK/prog.exe
    
    # Restore previous GOCOVERDIR setting
    env GOCOVERDIR=$SAVEGOCOVERDIR
    
    # Report percent lines covered.
    go tool covdata percent -i=$WORK/covdata
    stdout '\s*mainwithtest\s+coverage:'
    ! stdout 'main\s+coverage:'
    
    # Go test -cover should behave the same way.
    go test -cover .
    stdout 'ok\s+mainwithtest\s+\S+\s+coverage:'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:17 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/resources/org/gradle/api/internal/tasks/testing/report/style.css

    .infoBox p {
        margin: 0;
    }
    
    .counter, .percent {
        font-size: 120%;
        font-weight: bold;
        margin-bottom: 8px;
    }
    
    #duration {
        width: 125px;
    }
    
    #successRate, .summaryGroup {
        border: solid 2px #d0d0d0;
        -moz-border-radius: 10px;
        border-radius: 10px;
    }
    
    #successRate {
        width: 140px;
        margin-left: 35px;
    }
    
    #successRate .percent {
        font-size: 180%;
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top