Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for dotlines (3.11 sec)

  1. src/net/textproto/reader_test.go

    	if code != 0 || msg != "" || err != io.EOF {
    		t.Fatalf("EOF: %d, %s, %v", code, msg, err)
    	}
    }
    
    func TestReadDotLines(t *testing.T) {
    	r := reader("dotlines\r\n.foo\r\n..bar\n...baz\nquux\r\n\r\n.\r\nanother\n")
    	s, err := r.ReadDotLines()
    	want := []string{"dotlines", "foo", ".bar", "..baz", "quux", ""}
    	if !reflect.DeepEqual(s, want) || err != nil {
    		t.Fatalf("ReadDotLines: %v, %v", s, err)
    	}
    
    	s, err = r.ReadDotLines()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/continuous/ContinuousBuildActionExecutorTest.groovy

            }
            waitingForChangesMessageAppears()
    
            when:
            def logLengthBeforeOpeneningGatekeeper = logLines.size()
            gatekeeper.open()
            // Wait to make sure the build is not triggered
            Thread.sleep(500)
            then:
            logLines.size() == logLengthBeforeOpeneningGatekeeper
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. pkg/log/config_test.go

    		content, err := os.ReadFile(file)
    		if err != nil {
    			t.Errorf("Got failure '%v', expecting success", err)
    		}
    
    		rotLines := strings.Split(string(content), "\n")
    		if !strings.Contains(rotLines[0], "HELLO") {
    			t.Errorf("Expecting for first line of log to contain HELLO, got %s", rotLines[0])
    		}
    	})
    
    	if !strings.Contains(stdoutLines[0], "HELLO") {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    	if err != nil {
    		t.Fatalf("opening %s: %v", gopath, err)
    	}
    	golines := strings.Split(string(content), "\n")
    
    	// Preserve copyright.
    	ues.newgolines = append(ues.newgolines, golines[:4]...)
    	if !strings.HasPrefix(golines[0], "// Copyright") {
    		t.Fatalf("missing copyright from existing testcase")
    	}
    	golines = golines[4:]
    
    	clore := regexp.MustCompile(`.+\.func\d+[\.\d]*$`)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  5. src/go/token/position_test.go

    		}
    
    		// add lines with SetLines and verify all positions
    		if ok := f.SetLines(test.lines); !ok {
    			t.Errorf("%s: SetLines failed", f.Name())
    		}
    		if f.LineCount() != len(test.lines) {
    			t.Errorf("%s, SetLines: got line count %d; want %d", f.Name(), f.LineCount(), len(test.lines))
    		}
    		if !reflect.DeepEqual(f.Lines(), test.lines) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. src/cmd/cover/cover_test.go

    		outLine := strings.Join(strings.Fields(outLines[i]), " ")
    		if outLine != goldenLine {
    			t.Fatalf("line %d differs: got:\n\t%s\nwant:\n\t%s", i+1, outLine, goldenLine)
    		}
    	}
    	if len(goldenLines) != len(outLines) {
    		t.Fatalf("output longer than golden; first extra output line %d: %q\n", len(goldenLines)+1, outLines[len(goldenLines)])
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/ResultAssertion.java

            if (pos >= 0) {
                text = text.substring(0, pos);
            }
            return text;
        }
    
        public void validate(String output, String displayName) {
            List<String> lines = getLines(output);
            int i = 0;
            boolean insideVariantDescriptionBlock = false;
            boolean insideKotlinCompilerFlakyStacktrace = false;
            boolean sawVmPluginLoadFailure = false;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/go/token/position.go

    // An empty file has an empty line offset table.
    // Each line offset must be larger than the offset for the previous line
    // and smaller than the file size; otherwise SetLines fails and returns
    // false.
    // Callers must not mutate the provided slice after SetLines returns.
    func (f *File) SetLines(lines []int) bool {
    	// verify validity of lines table
    	size := f.size
    	for i, offset := range lines {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    
    namespace mlir {
    namespace TFL {
    namespace {
    #define GEN_PASS_DEF_WHILEOUTLINEPASS
    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    // This pass outlines the cond/body region of the TFL WhileOp into functions and
    // replaces the regions with calls to these outlined functions.
    class WhileOutlinePass : public impl::WhileOutlinePassBase<WhileOutlinePass> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

            }
            return groupedOutputFixture;
        }
    
        private String normalize(LogContent output) {
            List<String> result = new ArrayList<>();
            List<String> lines = output.getLines();
            int i = 0;
            while (i < lines.size()) {
                String line = lines.get(i);
                if (line.contains(DaemonStartupMessage.STARTING_DAEMON_MESSAGE)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top