Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for startPos (0.13 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            writePos == writeCursor
            interaction { expectLineWrapCallback(startRow, text.length()) }
            0 * newLineListener._
        }
    
        def "completing a line wrapping will callback the listener"() {
            given:
            consoleMetaData.cols >> TERMINAL_WIDTH
            Cursor writePos = Cursor.at(1, 0)
            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH + "B" * 2
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/cover/profile.go

    		// Merge samples from the same location.
    		j := 1
    		for i := 1; i < len(p.Blocks); i++ {
    			b := p.Blocks[i]
    			last := p.Blocks[j-1]
    			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)
    				}
    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. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

        log(task, queue, messageBlock())
      }
    }
    
    internal inline fun <T> Logger.logElapsed(
      task: Task,
      queue: TaskQueue,
      block: () -> T,
    ): T {
      var startNs = -1L
      val loggingEnabled = isLoggable(Level.FINE)
      if (loggingEnabled) {
        startNs = queue.taskRunner.backend.nanoTime()
        log(task, queue, "starting")
      }
    
      var completedNormally = false
      try {
        val result = block()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      }
    
      private fun logWithTime(message: String) {
        val startNs = startNs
        val timeMs =
          if (startNs == null) {
            // Event occurred before start, for an example an early cancel.
            0L
          } else {
            TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
          }
    
        logger.invoke("[$timeMs ms] $message")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

     */
    class LoggingEventListener private constructor(
      private val logger: HttpLoggingInterceptor.Logger,
    ) : EventListener() {
      private var startNs: Long = 0
    
      override fun callStart(call: Call) {
        startNs = System.nanoTime()
    
        logWithTime("callStart: ${call.request()}")
      }
    
      override fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/main/resources/org/gradle/reporting/report.js

                var currentCol = 0;
                slices = [];
                row.find("th").each(function(){
                    var e = $(this);
                    var title = e.text().trim();
                    var startCol = currentCol;
                    currentCol += parseInt(e.attr('colspan'));
                    var endCol = currentCol;
                    if (title.length === 0) {
                        return;
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/cmd/cover/func.go

    	for _, b := range profile.Blocks {
    		if b.StartLine > f.endLine || (b.StartLine == f.endLine && b.StartCol >= f.endCol) {
    			// Past the end of the function.
    			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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. src/go/printer/gobuild.go

    	if pos < len(p.output) {
    		pos++
    	}
    	return p.output[start:pos]
    }
    
    func (p *printer) commentTextAt(start int) string {
    	if start < len(p.output) && p.output[start] == tabwriter.Escape {
    		start++
    	}
    	pos := start
    	for pos < len(p.output) && p.output[pos] != tabwriter.Escape && !isNL(p.output[pos]) {
    		pos++
    	}
    	return string(p.output[start:pos])
    }
    
    func isNL(b byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/text/unicode/norm/forminfo.go

    // there is an additional leading ccc. The value of tccc itself is the
    // trailing CCC shifted left 2 bits. The two least-significant bits of tccc
    // are the number of trailing non-starters.
    
    const (
    	qcInfoMask      = 0x3F // to clear all but the relevant bits in a qcInfo
    	headerLenMask   = 0x3F // extract the length value from the header byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go

    // there is an additional leading ccc. The value of tccc itself is the
    // trailing CCC shifted left 2 bits. The two least-significant bits of tccc
    // are the number of trailing non-starters.
    
    const (
    	qcInfoMask      = 0x3F // to clear all but the relevant bits in a qcInfo
    	headerLenMask   = 0x3F // extract the length value from the header byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top