Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for errchk (0.26 sec)

  1. src/cmd/internal/testdir/testdir_test.go

    			m = errRx.FindStringSubmatch(line)
    		}
    		if m == nil {
    			continue
    		}
    		all := m[1]
    		mm := errQuotesRx.FindAllStringSubmatch(all, -1)
    		if mm == nil {
    			t.Fatalf("%s:%d: invalid errchk line: %s", t.goFileName(), lineNum, line)
    		}
    		for _, m := range mm {
    			rx := lineRx.ReplaceAllStringFunc(m[1], func(m string) string {
    				n := lineNum
    				if strings.HasPrefix(m, "LINE+") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    	errCh := make(chan error, len(pods))
    	successfulDeletes := int32(len(pods))
    	wg := sync.WaitGroup{}
    	wg.Add(len(pods))
    	for i := range pods {
    		go func(pod *v1.Pod) {
    			defer wg.Done()
    			if err := jm.podControl.DeletePod(ctx, job.Namespace, pod.Name, job); err != nil && !apierrors.IsNotFound(err) {
    				atomic.AddInt32(&successfulDeletes, -1)
    				errCh <- err
    				utilruntime.HandleError(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    				if err != nil {
    					errCh <- fmt.Errorf("incorrect resource version: %v", err)
    					return
    				}
    				if prevRV != -1 && prevRV+1 != rv {
    					errCh <- fmt.Errorf("unexpected event received, prevRV=%d, rv=%d", prevRV, rv)
    					return
    				}
    				prevRV = rv
    			}
    
    		}()
    	}
    	wg.Wait()
    	close(errCh)
    
    	for err := range errCh {
    		t.Error(err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. pkg/controller/daemon/daemon_controller.go

    					errCh <- err
    					utilruntime.HandleError(err)
    				}
    			}
    		}(i)
    	}
    	deleteWait.Wait()
    
    	// collect errors if any for proper reporting/retry logic in the controller
    	errors := []error{}
    	close(errCh)
    	for err := range errCh {
    		errors = append(errors, err)
    	}
    	return utilerrors.NewAggregate(errors)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/framework.go

    					err := fmt.Errorf("plugin %q failed with: %w", pl.Name(), status.AsError())
    					errCh.SendErrorWithCancel(err, cancel)
    					return
    				}
    				pluginToNodeScores[pl.Name()][index] = framework.NodeScore{
    					Name:  nodeName,
    					Score: s,
    				}
    			}
    		}, metrics.Score)
    		if err := errCh.ReceiveError(); err != nil {
    			return nil, framework.AsStatus(fmt.Errorf("running Score plugins: %w", err))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  6. src/crypto/tls/tls_test.go

    		if len(data) > 0 {
    			return fmt.Errorf("Read data = %q; want nothing", data)
    		}
    		return nil
    	}
    
    	errChan := make(chan error, 2)
    
    	go func() { errChan <- serverCloseWrite() }()
    	go func() { errChan <- clientCloseWrite() }()
    
    	for i := 0; i < 2; i++ {
    		select {
    		case err := <-errChan:
    			if err != nil {
    				t.Fatal(err)
    			}
    		case <-time.After(10 * time.Second):
    			t.Fatal("deadlock")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    func (p *parser) funcBody() *BlockStmt {
    	p.fnest++
    	errcnt := p.errcnt
    	body := p.blockStmt("")
    	p.fnest--
    
    	// Don't check branches if there were syntax errors in the function
    	// as it may lead to spurious errors (e.g., see test/switch2.go) or
    	// possibly crashes due to incomplete syntax trees.
    	if p.mode&CheckBranches != 0 && errcnt == p.errcnt {
    		checkBranches(body, p.errh)
    	}
    
    	return body
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_client_test.go

    	// client didn't offer.
    
    	c, s := localPipe(t)
    	errChan := make(chan error, 1)
    
    	go func() {
    		client := Client(c, &Config{
    			ServerName:   "foo",
    			CipherSuites: []uint16{TLS_RSA_WITH_AES_128_GCM_SHA256},
    			NextProtos:   []string{"http", "something-else"},
    		})
    		errChan <- client.Handshake()
    	}()
    
    	var header [5]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go

    	ESAD            = syscall.Errno(0x71)
    	ESHUTDOWN       = syscall.Errno(0x4d)
    	ESOCKTNOSUPPORT = syscall.Errno(0x3f)
    	ESOFT           = syscall.Errno(0x6f)
    	ESPIPE          = syscall.Errno(0x1d)
    	ESRCH           = syscall.Errno(0x3)
    	ESTALE          = syscall.Errno(0x34)
    	ESYSERROR       = syscall.Errno(0x5a)
    	ETIME           = syscall.Errno(0x77)
    	ETIMEDOUT       = syscall.Errno(0x4e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go

    	ESAD            = syscall.Errno(0x71)
    	ESHUTDOWN       = syscall.Errno(0x4d)
    	ESOCKTNOSUPPORT = syscall.Errno(0x3f)
    	ESOFT           = syscall.Errno(0x6f)
    	ESPIPE          = syscall.Errno(0x1d)
    	ESRCH           = syscall.Errno(0x3)
    	ESTALE          = syscall.Errno(0x34)
    	ESYSERROR       = syscall.Errno(0x5a)
    	ETIME           = syscall.Errno(0x77)
    	ETIMEDOUT       = syscall.Errno(0x4e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 52.4K bytes
    - Viewed (0)
Back to top