Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,007 for lineB (0.35 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    		lines          = strings.Split(crash, "\n")
    	)
    	for i := 0; i < len(lines); i++ {
    		line := lines[i]
    
    		// Read sentinel value.
    		if parentSentinel == 0 && strings.HasPrefix(line, "sentinel ") {
    			_, err := fmt.Sscanf(line, "sentinel %x", &parentSentinel)
    			if err != nil {
    				return nil, fmt.Errorf("can't read sentinel line")
    			}
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/cmd/internal/test2json/test2json_test.go

    	t.Helper()
    	type event map[string]any
    
    	// Parse into events, one per line.
    	parseEvents := func(b []byte) ([]event, []string) {
    		t.Helper()
    		var events []event
    		var lines []string
    		for _, line := range bytes.SplitAfter(b, []byte("\n")) {
    			if len(line) > 0 {
    				line = bytes.TrimSpace(line)
    				var e event
    				err := json.Unmarshal(line, &e)
    				if err != nil {
    					t.Errorf("unmarshal %s: %v", b, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    	return jsonTag
    }
    
    // A buffer of lines that will be written.
    type bufferedLine struct {
    	line        string
    	indentation int
    }
    
    type buffer struct {
    	lines []bufferedLine
    }
    
    func newBuffer() *buffer {
    	return &buffer{
    		lines: make([]bufferedLine, 0),
    	}
    }
    
    func (b *buffer) addLine(line string, indent int) {
    	b.lines = append(b.lines, bufferedLine{line, indent})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcher.java

                    return false;
                }
            }
            return true;
        }
    
        /**
         * Finds all the lines in the actual line that match any line in the expected list.
         *
         * @return a map of expected line index to a list of all actual line indices that match the expected line
         */
        private static Map<Integer, List<Integer>> findMatchingLines(List<String> expectedLines, List<String> actualLines) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. src/go/printer/nodes.go

    		if 0 < b && b < e {
    			// list spans multiple lines
    			n := 0 // multi-line element count
    			line := b
    			for _, x := range list {
    				xb := p.lineFor(x.Pos())
    				xe := p.lineFor(x.End())
    				if line < xb {
    					// x is not starting on the same
    					// line as the previous one ended
    					return true
    				}
    				if xb < xe {
    					// x is a multi-line element
    					n++
    				}
    				line = xe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    		if err != nil {
    			return nil, err
    		}
    
    		lines := strings.SplitAfter(string(content), "\n")
    		active := false
    		for lineno, line := range lines {
    			lineno++
    
    			// Ignore comments and commented-out code.
    			if i := strings.Index(line, "//"); i >= 0 {
    				line = line[:i]
    			}
    			line = strings.TrimSpace(line)
    
    			// We start checking code at a TEXT line for a frameless function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. pkg/log/config_test.go

    		"",
    	}
    
    	if len(lines) > len(patterns) {
    		t.Errorf("Expecting %d lines of output, but got %d", len(patterns), len(lines))
    
    		for i := len(patterns); i < len(lines); i++ {
    			t.Errorf("  Extra line of output: %s", lines[i])
    		}
    	}
    
    	for i, pat := range patterns {
    		t.Run(strconv.Itoa(i), func(t *testing.T) {
    			match, _ := regexp.MatchString(pat, lines[i])
    			if !match {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    	}
    	lines := strings.Split(ename, "\n")
    	var lastPath string // empty or ends with .
    	for i, line := range lines {
    		path, rest := cutLastDot(line)
    		if len(path) == 0 {
    			continue // unchanged
    		}
    		if len(path) == 1 && path[0] == '"' {
    			lines[i] = lastPath + rest
    		} else {
    			lastPath = path + "."
    			// line unchanged
    		}
    	}
    	return strings.Join(lines, "\n") // trailing \n?
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/LinePreservingSubstringTest.kt

                    buildscript {
                        // line 2
                    }""".replaceIndent()
                )
            )
        }
    
        @Test
        fun `given ranges linePreservingBlankRange should blank lines`() {
            val original = """
                |// line 1
                |// line 2
                |buildscript {
                |    // line 4
                |}
                |// line 6
                |plugins {
                |    // line 8
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/DiffUtils.java

        /** Calculate an incremental Id for a given string. */
        private Integer getIdByLine(String line) {
            int newId = stringList.size();
            Integer existingId = stringToId.put(line, newId);
            if (existingId == null) {
                stringList.add(line);
                return newId;
            } else {
                stringToId.put(line, existingId);
                return existingId;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top