Search Options

Results per page
Sort
Preferred Languages
Advance

Results 571 - 580 of 706 for break (0.03 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

          while ((ref = keyReferenceQueue.poll()) != null) {
            @SuppressWarnings("unchecked")
            E entry = (E) ref;
            map.reclaimKey(entry);
            if (++i == DRAIN_MAX) {
              break;
            }
          }
        }
    
        @GuardedBy("this")
        void drainValueReferenceQueue(ReferenceQueue<V> valueReferenceQueue) {
          Reference<? extends V> ref;
          int i = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        }
        assertIntact(q);
        assertThat(result).containsExactly(1, 15, 13, 8, 14);
      }
    
      /**
       * This tests a special case of the removeAt() call. Moving an element sideways on the heap could
       * break the invariants. Sometimes we need to bubble an element up instead of trickling down. See
       * implementation.
       */
      public void testInvalidatingRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  3. cmd/config-current.go

    			sc, err := storageclass.LookupConfig(s[config.StorageClassSubSys][config.Default], setDriveCount)
    			if err != nil {
    				configLogIf(ctx, fmt.Errorf("Unable to initialize storage class config: %w", err))
    				break
    			}
    			if i == 0 {
    				globalStorageClass.Update(sc)
    			}
    		}
    	case config.SubnetSubSys:
    		subnetConfig, err := subnet.LookupConfig(s[config.SubnetSubSys][config.Default], globalRemoteTargetTransport)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  4. cmd/storage-rest-client.go

    	}
    	rd := msgpNewReader(respReader)
    	defer readMsgpReaderPoolPut(rd)
    
    	for {
    		var st StatInfo
    		err = st.DecodeMsg(rd)
    		if err != nil {
    			if errors.Is(err, io.EOF) {
    				err = nil
    			}
    			break
    		}
    
    		stat = append(stat, st)
    	}
    
    	return stat, toStorageErr(err)
    }
    
    // ReadMultiple will read multiple files and send each back as response.
    // Files are read and returned in the given order.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            out.flush()
            if (i == 513) {
              // pause slightly after halfway to make result more predictable
              Thread.sleep(100)
            }
          } catch (e: IOException) {
            break
          }
          i++
        }
        // Halfway +/- 0.5%
        assertThat(i.toFloat()).isCloseTo(512f, 5f)
      }
    
      @Test
      fun disconnectResponseHalfway() {
        server.enqueue(
          MockResponse()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

            out.flush()
            if (i == 513) {
              // pause slightly after half way to make result more predictable
              Thread.sleep(100)
            }
          } catch (e: IOException) {
            break
          }
          i++
        }
        // Halfway +/- 0.5%
        assertThat(i.toFloat()).isCloseTo(512f, 5f)
      }
    
      @Test
      fun disconnectResponseHalfway() {
        server.enqueue(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. misc/go_android_exec/main.go

    			if err := adb("exec-out", "mkdir", "-p", devicePath); err != nil {
    				return err
    			}
    			if err := adb("push", hostPath, devicePath); err != nil {
    				return err
    			}
    		}
    		if subdir == "." {
    			break
    		}
    		subdir = filepath.Dir(subdir)
    		dir = path.Join(dir, "..")
    	}
    	return nil
    }
    
    // adbCopyGoroot clears deviceRoot for previous versions of GOROOT, GOPATH
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret_test.go

    func mustFindObject(t test.Failer, objs []manifest.Manifest, name, kind string) {
    	t.Helper()
    	var obj *manifest.Manifest
    	for _, o := range objs {
    		if o.GetKind() == kind && o.GetName() == name {
    			obj = &o
    			break
    		}
    	}
    	if obj == nil {
    		t.Fatalf("expected %v/%v", name, kind)
    	}
    }
    
    func TestCreateRemoteKubeconfig(t *testing.T) {
    	fakeClusterName := "fake-clusterName-0"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. internal/config/config.go

    		// sub-systems.
    		if kv.Key == Comment {
    			continue
    		}
    		var skip bool
    		for _, deprecatedKey := range deprecatedKeys {
    			if kv.Key == deprecatedKey {
    				skip = true
    				break
    			}
    		}
    		if skip {
    			continue
    		}
    		if _, ok := validKVS.Lookup(kv.Key); !ok {
    			nkv = append(nkv, kv)
    		}
    	}
    	if len(nkv) > 0 {
    		return Errorf(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  10. cmd/metacache-stream_test.go

    	}
    }
    
    func Test_metacacheReader_peek(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	for i, want := range loadMetacacheSampleNames {
    		got, err := r.peek()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			t.Fatal(err)
    		}
    		if got.name != want {
    			t.Errorf("entry %d, want %q, got %q", i, want, got.name)
    		}
    		gotObj, err := r.next()
    		if err != nil {
    			t.Fatal(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
Back to top