Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 52 for wantnil (0.22 sec)

  1. internal/grid/grid_test.go

    			},
    			OutCapacity: 1,
    			InCapacity:  1,
    		}))
    	}
    	register(local)
    	register(remote)
    	// Double remote DL
    	local.debugMsg(debugAddToDeadline, wantDL)
    	defer local.debugMsg(debugAddToDeadline, time.Duration(0))
    	remote.debugMsg(debugAddToDeadline, wantDL)
    	defer remote.debugMsg(debugAddToDeadline, time.Duration(0))
    
    	testHandler := func(t *testing.T, handler HandlerID) {
    		remoteConn := local.Connection(remoteHost)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. src/cmd/internal/test2json/test2json.go

    // Otherwise they are split into multiple events.
    // The output buffer size therefore limits the size of the encoding
    // of a single JSON output event. 1k seems like a reasonable balance
    // between wanting to avoid splitting an output line and not wanting to
    // generate enormous output events.
    var (
    	inBuffer  = 4096
    	outBuffer = 1024
    )
    
    // NewConverter returns a "test to json" converter.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    // checkID will check if the disk ID matches the provided ID.
    func (p *xlStorageDiskIDCheck) checkID(wantID string) (err error) {
    	if wantID == "" {
    		return nil
    	}
    	id, err := p.storage.GetDiskID()
    	if err != nil {
    		return err
    	}
    	if id != wantID {
    		return fmt.Errorf("disk ID %s does not match. disk reports %s", wantID, id)
    	}
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    		for k := range s.NumLabel {
    			encounteredKeys[k] = true
    			for _, unit := range s.NumUnit[k] {
    				if unit == "" {
    					continue
    				}
    				if wantUnit, ok := numLabelUnits[k]; !ok {
    					numLabelUnits[k] = unit
    				} else if wantUnit != unit {
    					if v, ok := ignoredUnits[k]; ok {
    						v[unit] = true
    					} else {
    						ignoredUnits[k] = map[string]bool{unit: true}
    					}
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. src/compress/flate/huffman_bit_writer_test.go

    		testWriterEOF(t, "wb", test, true)
    	}
    	t.Logf("Testing %q", test.wantNoInput)
    	wantNI, err := os.ReadFile(test.wantNoInput)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    	var buf bytes.Buffer
    	bw := newHuffmanBitWriter(&buf)
    	writeToType(t, ttype, bw, test.tokens, nil)
    
    	got := buf.Bytes()
    	if !bytes.Equal(got, wantNI) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 40.3K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2_test.go

    		t.Fatal(err)
    	}
    	v0 := xl.versions[0]
    
    	// Saved with signature 0xfe, 0x54, 0xbc, 0x2f
    	// Signature must be converted after load.
    	wantSig := [4]byte{0x1e, 0x5f, 0xba, 0x4a}
    	if v0.header.Signature != wantSig {
    		t.Errorf("Wrong signature, want %#v, got %#v", wantSig, v0.header.Signature)
    	}
    	v, err := xl.getIdx(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	wantTimeStamp := "2022-10-27T07:40:53.195813291Z"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. operator/pkg/helmreconciler/wait.go

    			return &cond
    		}
    	}
    	return nil
    }
    
    func daemonsetsReady(daemonsets []*appsv1.DaemonSet) (bool, []string) {
    	var notReady []string
    	for _, ds := range daemonsets {
    		// Check if the wanting generation is same as the observed generation
    		// Only when the observed generation is the same as the generation,
    		// other checks will make sense. If not the same, daemon set is not
    		// ready
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/mod/zip/zip.go

    	if err := cmd.Run(); err != nil {
    		return false
    	}
    	gitDir := strings.TrimSpace(stdout.String())
    	if !filepath.IsAbs(gitDir) {
    		gitDir = filepath.Join(dir, gitDir)
    	}
    	wantDir := filepath.Join(dir, ".git")
    	return wantDir == gitDir
    }
    
    type dirFile struct {
    	filePath, slashPath string
    	info                os.FileInfo
    }
    
    func (f dirFile) Path() string                 { return f.slashPath }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 31K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	return true
    }
    
    // checkID - check if the disk-id in the request corresponds to the underlying disk.
    func (s *storageRESTServer) checkID(wantID string) bool {
    	if s.getStorage() == nil {
    		return false
    	}
    	if wantID == "" {
    		// Request sent empty disk-id, we allow the request
    		// as the peer might be coming up and trying to read format.json
    		// or create format.json
    		return true
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  10. src/bufio/bufio_test.go

    		t.Errorf("w.Write(%v bytes) = %v, %v; want %v, nil", writeSize, n, err, writeSize)
    	}
    	n, err := w.ReadFrom(bytes.NewReader(input[writeSize:]))
    	if wantn := len(input[writeSize:]); int(n) != wantn || err != nil {
    		t.Errorf("io.Copy(w, %v bytes) = %v, %v; want %v, nil", wantn, n, err, wantn)
    	}
    	if err := w.Flush(); err != nil {
    		t.Errorf("w.Flush() = %v, want nil", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
Back to top