Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for numStmts (0.13 sec)

  1. src/cmd/go/internal/load/test.go

    	{{end}}
    	{{end}}
    }
    
    func coverRegisterFile(fileName string, counter []uint32, pos []uint32, numStmts []uint16) {
    	if 3*len(counter) != len(pos) || len(counter) != len(numStmts) {
    		panic("coverage: mismatched sizes")
    	}
    	if coverCounters[fileName] != nil {
    		// Already registered.
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/cover/profile.go

    			if b.StartLine == last.StartLine &&
    				b.StartCol == last.StartCol &&
    				b.EndLine == last.EndLine &&
    				b.EndCol == last.EndCol {
    				if b.NumStmt != last.NumStmt {
    					return nil, fmt.Errorf("inconsistent NumStmt: changed from %d to %d", last.NumStmt, b.NumStmt)
    				}
    				if mode == "set" {
    					p.Blocks[j-1].Count |= b.Count
    				} else {
    					p.Blocks[j-1].Count += b.Count
    				}
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 17:02:03 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/cover/func.go

    			break
    		}
    		if b.EndLine < f.startLine || (b.EndLine == f.startLine && b.EndCol <= f.startCol) {
    			// Before the beginning of the function
    			continue
    		}
    		total += int64(b.NumStmt)
    		if b.Count > 0 {
    			covered += int64(b.NumStmt)
    		}
    	}
    	return covered, total
    }
    
    // Pkg describes a single package, compatible with the JSON output from 'go list'; see 'go help list'.
    type Pkg struct {
    	ImportPath string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  4. src/cmd/cover/html.go

    // In effect, it reports the coverage of a given source file.
    func percentCovered(p *cover.Profile) float64 {
    	var total, covered int64
    	for _, b := range p.Blocks {
    		total += int64(b.NumStmt)
    		if b.Count > 0 {
    			covered += int64(b.NumStmt)
    		}
    	}
    	if total == 0 {
    		return 0
    	}
    	return float64(covered) / float64(total) * 100
    }
    
    // htmlGen generates an HTML coverage report with the provided filename,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 14:33:36 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/cover/cover.go

    			StCol:   uint32(stpos.Column),
    			EnLine:  uint32(enpos.Line),
    			EnCol:   uint32(enpos.Column),
    			NxStmts: uint32(numStmt),
    		}
    		f.fn.units = append(f.fn.units, unit)
    	} else {
    		stmt = counterStmt(f, fmt.Sprintf("%s.Count[%d]", *varVar,
    			len(f.blocks)))
    		f.blocks = append(f.blocks, Block{start, end, numStmt})
    	}
    	return stmt
    }
    
    // addCounters takes a list of statements and adds counters to the beginning of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top