- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 118 for Hines (0.72 sec)
-
src/cmd/covdata/tool_test.go
lines := runToolOp(t, s, "pkglist", dargs) want := []string{mainPkgPath, mainPkgPath + "/dep"} bad := false if len(lines) != 2 { t.Errorf("expect pkglist to return two lines") bad = true } else { for i := 0; i < 2; i++ { lines[i] = strings.TrimSpace(lines[i]) if want[i] != lines[i] { t.Errorf("line %d want %s got %s", i, want[i], lines[i]) bad = true } } } if bad {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 20:46:32 UTC 2024 - 24.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/stmtlines_test.go
m = 2 // expect 98% elsewhere. } if len(nonStmtLines)*100 > m*len(lines) { t.Errorf("Saw too many (%s, > %d%%) lines without statement marks, total=%d, nostmt=%d ('-run TestStmtLines -v' lists failing lines)\n", runtime.GOARCH, m, len(lines), len(nonStmtLines)) } t.Logf("Saw %d out of %d lines without statement marks", len(nonStmtLines), len(lines)) if testing.Verbose() { sort.Slice(nonStmtLines, func(i, j int) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 03 17:05:14 UTC 2023 - 3.5K bytes - Viewed (0) -
misc/ios/detect.go
return nil, err } return bytes.TrimSpace(out), nil } func getLines(cmd *exec.Cmd) [][]byte { out := output(cmd) lines := bytes.Split(out, []byte("\n")) // Skip the empty line at the end. if len(lines[len(lines)-1]) == 0 { lines = lines[:len(lines)-1] } return lines } func output(cmd *exec.Cmd) []byte { out, err := cmd.Output() if err != nil { fmt.Println(strings.Join(cmd.Args, "\n"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:30 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env.go
base.Fatalf("go: reading go env config: %v", err) } lines := strings.SplitAfter(string(data), "\n") if lines[len(lines)-1] == "" { lines = lines[:len(lines)-1] } else { lines[len(lines)-1] += "\n" } return lines } func updateEnvFile(add map[string]string, del map[string]bool) { lines := readEnvFileLines(len(add) == 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/internal/test2json/test2json_test.go
fail := func() { var buf bytes.Buffer show := func(i int, lines []string) { for k := -2; k < 5; k++ { marker := "" if k == 0 { marker = "» " } if 0 <= i+k && i+k < len(lines) { fmt.Fprintf(&buf, "\t%s%s\n", marker, lines[i+k]) } } if i >= len(lines) { // show marker after end of input fmt.Fprintf(&buf, "\t» \n") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 7.2K bytes - Viewed (0) -
src/cmd/go/internal/imports/build.go
continue Comments } continue Lines } if bytes.HasPrefix(line, bSlashSlash) { continue Lines } if bytes.HasPrefix(line, bSlashStar) { inSlashStar = true line = bytes.TrimSpace(line[len(bSlashStar):]) continue Comments } // Found non-comment text. break Lines } } return content[:end], goBuild, sawBinaryOnly, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 30 18:50:57 UTC 2023 - 10.4K bytes - Viewed (0) -
src/cmd/internal/objfile/disasm.go
path = path[strings.LastIndex(path, "/")+1:] path = path[strings.LastIndex(path, `\`)+1:] return path } // CachedFile contains the content of a file split into lines. type CachedFile struct { FileName string Lines [][]byte } // FileCache is a simple LRU cache of file contents. type FileCache struct { files *list.List maxLen int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 10.5K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile_test.go
t.Errorf("read Aux2 mismatch: got %v %v", a2.Type(), a2.Sym()) } } var issue41621prolog = ` package main var lines = []string{ ` var issue41621epilog = ` } func getLines() []string { return lines } func main() { println(getLines()) } ` func TestIssue41621LargeNumberOfRelocations(t *testing.T) { if testing.Short() || (buildcfg.GOARCH != "amd64") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:22:12 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/internal/test2json/test2json.go
// input-processing callbacks on whole lines or (for long lines that // have been split) line fragments. // // It should be initialized with b set to a buffer of length 0 but non-zero capacity, // and line and part set to the desired input processors. // The lineBuffer will call line(x) for any whole line x (including the final newline) // that fits entirely in cap(b). It will handle input lines longer than cap(b) by
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 17:33:07 UTC 2022 - 14.5K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/merge.go
key.addr -= l.Mapping.Start key.mappingID = l.Mapping.ID } lines := make([]string, len(l.Line)*3) for i, line := range l.Line { if line.Function != nil { lines[i*2] = strconv.FormatUint(line.Function.ID, 16) } lines[i*2+1] = strconv.FormatInt(line.Line, 16) lines[i*2+2] = strconv.FormatInt(line.Column, 16) } key.lines = strings.Join(lines, "|") return key } type locationKey struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17K bytes - Viewed (0)