Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for testStats (0.07 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
      public void testStats() {
        CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        CacheLoader<Object, Object> loader = identityLoader();
        tester.testAllPublicInstanceMethods(makeCache(createCacheBuilder(), loader));
      }
    
      // stats tests
    
      public void testStats() {
        CacheBuilder<Object, Object> builder = createCacheBuilder().concurrencyLevel(1).maximumSize(2);
        LocalLoadingCache<Object, Object> cache = makeCache(builder, identityLoader());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testXStats() {
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, EMPTY_PAIRED_STATS.xStats());
        assertStatsApproxEqual(ONE_VALUE_STATS, ONE_VALUE_PAIRED_STATS.xStats());
        assertStatsApproxEqual(TWO_VALUES_STATS, TWO_VALUES_PAIRED_STATS.xStats());
        assertStatsApproxEqual(MANY_VALUES_STATS_ITERABLE, MANY_VALUES_PAIRED_STATS.xStats());
      }
    
      public void testYStats() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testXStats() {
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, emptyAccumulator.xStats());
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, emptyAccumulatorByAddAllEmptyPairedStats.xStats());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testXStats() {
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, emptyAccumulator.xStats());
        assertStatsApproxEqual(EMPTY_STATS_ITERABLE, emptyAccumulatorByAddAllEmptyPairedStats.xStats());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/pseudo_test.go

    		{"PCDATA", "1", "expect two operands for PCDATA"},
    	}
    
    	runtimeTests := []errtest{
    		{"TEXT", "foo<ABIInternal>(SB),0", "TEXT \"foo\": ABIInternal requires NOSPLIT"},
    	}
    
    	testcats := []struct {
    		allowABI bool
    		tests    []errtest
    	}{
    		{
    			allowABI: false,
    			tests:    nonRuntimeTests,
    		},
    		{
    			allowABI: true,
    			tests:    runtimeTests,
    		},
    	}
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. internal/bucket/replication/filter.go

    		}
    	}
    	if !f.Tag.IsEmpty() {
    		if err := f.Tag.Validate(); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // TestTags tests if the object tags satisfy the Filter tags requirement,
    // it returns true if there is no tags in the underlying Filter.
    func (f *Filter) TestTags(userTags string) bool {
    	if f.cachedTags == nil {
    		cached := make(map[string]string)
    		for _, t := range append(f.And.Tags, f.Tag) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 28 18:25:46 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/filter.go

    		}
    	case sizeGtPred:
    		if f.ObjectSizeGreaterThan < 0 {
    			err = errXMLNotWellFormed
    		}
    	}
    	return err
    }
    
    // TestTags tests if the object tags satisfy the Filter tags requirement,
    // it returns true if there is no tags in the underlying Filter.
    func (f Filter) TestTags(userTags string) bool {
    	if f.cachedTags == nil {
    		cache := make(map[string]string)
    		for _, t := range append(f.And.Tags, f.Tag) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 04 17:01:26 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/filter_test.go

    		},
    		{
    			filter:   twoTags,
    			userTags: "BAR=2&FOO=1",
    			want:     true,
    		},
    	}
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			if got := test.filter.TestTags(test.userTags); got != test.want {
    				t.Errorf("Expected %v but got %v", test.want, got)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 27 00:01:20 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. internal/bucket/replication/replication.go

    			continue
    		}
    		if obj.ExistingObject && rule.ExistingObjectReplication.Status == Disabled {
    			continue
    		}
    		if !strings.HasPrefix(obj.Name, rule.Prefix()) {
    			continue
    		}
    		if rule.Filter.TestTags(obj.UserTags) {
    			rules = append(rules, rule)
    		}
    	}
    	sort.Slice(rules, func(i, j int) bool {
    		return rules[i].Priority > rules[j].Priority && rules[i].Destination.String() == rules[j].Destination.String()
    	})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top