Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 933 for count (0.15 sec)

  1. tests/named_polymorphic_test.go

    	}
    
    	// clear to omit Toy.ID in count
    	hamster2.PreferredToy = Toy{}
    	hamster2.OtherToy = Toy{}
    
    	if DB.Model(&hamster2).Association("PreferredToy").Count() != 1 {
    		t.Errorf("Hamster's preferred toy count should be 1")
    	}
    
    	if DB.Model(&hamster2).Association("OtherToy").Count() != 1 {
    		t.Errorf("Hamster's other toy count should be 1")
    	}
    
    	// Query
    	hamsterToy := Toy{}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Jul 08 09:59:40 GMT 2020
    - 4.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      @Override
      void setCountCheckReturnValue(E element, int count) {
        assertTrue(
            "setCount() with the correct expected present count should return true",
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      private boolean setCount(E element, int count) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SID.java

            this.sub_authority_count = (byte) ( domsid.sub_authority_count + id.sub_authority_count );
            this.sub_authority = new int[this.sub_authority_count];
            int i;
            for ( i = 0; i < domsid.sub_authority_count; i++ ) {
                this.sub_authority[ i ] = domsid.sub_authority[ i ];
            }
            for ( i = domsid.sub_authority_count; i < domsid.sub_authority_count + id.sub_authority_count; i++ ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

                try {
                    if (count < 10) {
                        System.out.println(path1);
                    }
                    assertThat(path1, is(notNullValue()));
                    assertThat(is, is(notNullValue()));
                    count++;
                } finally {
                    CloseableUtil.close(is);
                }
            });
            assertTrue(count > 0);
        }
    
        /**
         * @throws Exception
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeMultiset.java

      @Override
      public int setCount(@ParametricNullness E element, int count) {
        checkNonnegative(count, "count");
        if (!range.contains(element)) {
          checkArgument(count == 0);
          return 0;
        }
    
        AvlNode<E> root = rootReference.get();
        if (root == null) {
          if (count > 0) {
            add(element, count);
          }
          return 0;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        assertThat(manyValuesAccumulatorByAddAllIterable.count()).isEqualTo(MANY_VALUES_COUNT);
        assertThat(manyValuesAccumulatorByAddAllIterator.count()).isEqualTo(MANY_VALUES_COUNT);
        assertThat(manyValuesAccumulatorByAddAllVarargs.count()).isEqualTo(MANY_VALUES_COUNT);
        assertThat(manyValuesAccumulatorByRepeatedAdd.count()).isEqualTo(MANY_VALUES_COUNT);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 34K bytes
    - Viewed (0)
  7. tests/test_dependency_cache.py

    
    async def super_dep(count: int = Depends(dep_counter)):
        return count
    
    
    @app.get("/counter/")
    async def get_counter(count: int = Depends(dep_counter)):
        return {"counter": count}
    
    
    @app.get("/sub-counter/")
    async def get_sub_counter(
        subcount: int = Depends(super_dep), count: int = Depends(dep_counter)
    ):
        return {"counter": count, "subcounter": subcount}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Aug 23 13:30:24 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * is permitted and similarly for decrease/remove(). We assume that a
       * setCount() no-op is permitted if either add() or remove() is permitted,
       * though we also allow it to "succeed" if neither is permitted.
       */
    
      private void assertSetCount(E element, int count) {
        setCountCheckReturnValue(element, count);
    
        assertEquals(
            "multiset.count() should return the value passed to setCount()",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * is permitted and similarly for decrease/remove(). We assume that a
       * setCount() no-op is permitted if either add() or remove() is permitted,
       * though we also allow it to "succeed" if neither is permitted.
       */
    
      private void assertSetCount(E element, int count) {
        setCountCheckReturnValue(element, count);
    
        assertEquals(
            "multiset.count() should return the value passed to setCount()",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        assertThat(twoValuesAccumulator.count()).isEqualTo(2);
        assertThat(twoValuesAccumulatorByAddAllPartitionedPairedStats.count()).isEqualTo(2);
        assertThat(manyValuesAccumulator.count()).isEqualTo(MANY_VALUES_COUNT);
        assertThat(manyValuesAccumulatorByAddAllPartitionedPairedStats.count())
            .isEqualTo(MANY_VALUES_COUNT);
      }
    
      public void testCountOverflow_doesNotThrow() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 23.4K bytes
    - Viewed (0)
Back to top