Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for Func1 (0.16 sec)

  1. src/internal/trace/summary_test.go

    	var (
    		hasSchedWaitTime    bool
    		hasSyncBlockTime    bool
    		hasGCMarkAssistTime bool
    	)
    
    	assertContainsGoroutine(t, summaries, "runtime.gcBgMarkWorker")
    	assertContainsGoroutine(t, summaries, "main.main.func1")
    
    	for _, summary := range summaries {
    		basicGoroutineSummaryChecks(t, summary)
    		hasSchedWaitTime = hasSchedWaitTime || summary.SchedWaitTime > 0
    		if dt, ok := summary.BlockTimeByReason["sync"]; ok && dt > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/runtime/crash_test.go

    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    
    	// Check functions in the traceback.
    	fns := []string{"main.pt1.func1", "panic", "main.pt2.func1", "panic", "main.pt2", "main.pt1"}
    	for _, fn := range fns {
    		re := regexp.MustCompile(`(?m)^` + regexp.QuoteMeta(fn) + `\(.*\n`)
    		idx := re.FindStringIndex(output)
    		if idx == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. src/go/printer/testdata/expressions.golden

    			s[i].match[0] < pos {	// earlier match already going; leftmost wins
    			return s
    		}
    	}
    }
    
    func (self *T) foo(x int) *T	{ return self }
    
    func _()	{ module.Func1().Func2() }
    
    func _() {
    	_ = new(T).
    		foo(1).
    		foo(2).
    		foo(3)
    
    	_ = new(T).
    		foo(1).
    		foo(2).	// inline comments
    		foo(3)
    
    	_ = new(T).foo(1).foo(2).foo(3)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  4. src/go/printer/testdata/expressions.raw

    			s[i].match[0] < pos {	// earlier match already going; leftmost wins
    			return s
    		}
    	}
    }
    
    func (self *T) foo(x int) *T	{ return self }
    
    func _()	{ module.Func1().Func2() }
    
    func _() {
    	_ = new(T).
    		foo(1).
    		foo(2).
    		foo(3)
    
    	_ = new(T).
    		foo(1).
    		foo(2).	// inline comments
    		foo(3)
    
    	_ = new(T).foo(1).foo(2).foo(3)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  5. src/internal/trace/trace_test.go

    				{"main.main", mainLine + 11},
    			}},
    			{trace.EventStateTransition, "Goroutine Running->Waiting", []frame{
    				{"runtime.block", 0},
    				{"main.main.func1", 0},
    			}},
    			{trace.EventStateTransition, "Goroutine Running->Waiting", []frame{
    				{"runtime.chansend1", 0},
    				{"main.main.func2", 0},
    			}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. test/live.go

    	r = p
    	defer func() {
    		recover()
    	}()
    	printint(0) // ERROR "live at call to printint: .autotmp_[0-9]+ q r$"
    	r = q
    	return // ERROR "live at call to f41.func1: .autotmp_[0-9]+ r$"
    }
    
    func f42() {
    	var p, q, r int
    	f43([]*int{&p, &q, &r}) // ERROR "stack object .autotmp_[0-9]+ \[3\]\*int$"
    	f43([]*int{&p, &r, &q})
    	f43([]*int{&q, &p, &r})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. src/net/http/clientserver_test.go

    	}
    	gotLog := strings.TrimSpace(errorLog.String())
    	wantLog := "http: superfluous response.WriteHeader call from net/http_test.testWriteHeaderAfterWrite.func1 (clientserver_test.go:"
    	if hijack {
    		wantLog = "http: response.WriteHeader on hijacked connection from net/http_test.testWriteHeaderAfterWrite.func1 (clientserver_test.go:"
    	}
    	if !strings.HasPrefix(gotLog, wantLog) {
    		t.Errorf("stderr output = %q; want %q", gotLog, wantLog)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  8. test/live_regabi.go

    	r = p
    	defer func() {
    		recover()
    	}()
    	printint(0) // ERROR "live at call to printint: .autotmp_[0-9]+ q r$"
    	r = q
    	return // ERROR "live at call to f41.func1: .autotmp_[0-9]+ r$"
    }
    
    func f42() {
    	var p, q, r int
    	f43([]*int{&p, &q, &r}) // ERROR "stack object .autotmp_[0-9]+ \[3\]\*int$"
    	f43([]*int{&p, &r, &q})
    	f43([]*int{&q, &p, &r})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  9. src/runtime/traceback_test.go

    	})
    
    	t.Run("sigpanic", func(t *testing.T) {
    		// Check that sigpanic from an inlined function prints correctly
    		r := ttiSigpanic1()
    		check(t, r, "runtime_test.ttiSigpanic1.func1()", "panic", "runtime_test.ttiSigpanic3(...)", "runtime_test.ttiSigpanic2(...)", "runtime_test.ttiSigpanic1()")
    	})
    
    	t.Run("wrapper", func(t *testing.T) {
    		// Check that a method inlined into a wrapper prints correctly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
Back to top