Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for makeConn (0.07 sec)

  1. tests/fuzz/autoregistration_controller_fuzzer.go

    	"istio.io/istio/pkg/keepalive"
    )
    
    type fakeConn struct {
    	proxy    *model.Proxy
    	connTime time.Time
    	stopped  bool
    }
    
    func makeConn(proxy *model.Proxy, connTime time.Time) *fakeConn {
    	return &fakeConn{proxy: proxy, connTime: connTime}
    }
    
    func (f *fakeConn) ID() string {
    	return fmt.Sprintf("%s-%v", f.proxy.IPAddresses[0], f.connTime)
    }
    
    func (f *fakeConn) Proxy() *model.Proxy {
    	return f.proxy
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/go/parser/testdata/issue3106.src

    // license that can be found in the LICENSE file.
    
    // Test case for go.dev/issue/3106: Better synchronization of
    // parser after certain syntax errors.
    
    package main
    
    func f() {
    	var m Mutex
    	c := MakeCond(&m)
    	percent := 0
    	const step = 10
    	for i := 0; i < 5; i++ {
    		go func() {
    			for {
    				// Emulates some useful work.
    				time.Sleep(1e8)
    				m.Lock()
    				defer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 829 bytes
    - Viewed (0)
Back to top