Home
last modified time | relevance | path

Searched refs:asList (Results 1 – 25 of 1375) sorted by relevance

12345678910>>...55

/external/opencensus-java/exporters/stats/prometheus/src/test/java/io/opencensus/exporter/stats/prometheus/
DPrometheusExportUtilsTest.java75 BucketBoundaries.create(Arrays.asList(-5.0, 0.0, 5.0));
97 DistributionData.create(4.4, 5, -3.2, 15.7, 135.22, Arrays.asList(0L, 2L, 2L, 1L));
102 VIEW_NAME_1, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1, K2), CUMULATIVE);
104 View.create(VIEW_NAME_2, DESCRIPTION, MEASURE_DOUBLE, MEAN, Arrays.asList(K3), CUMULATIVE);
107 VIEW_NAME_3, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1), CUMULATIVE);
109 View.create(VIEW_NAME_4, DESCRIPTION, MEASURE_DOUBLE, COUNT, Arrays.asList(K1), INTERVAL);
116 Arrays.asList(K1, TAG_KEY_LE),
166 convertToLabelNames(Arrays.asList(K1, K2)), in getSamples()
167 Arrays.asList(V1, V2), in getSamples()
171 new Sample(SAMPLE_NAME, Arrays.asList("k1", "k2"), Arrays.asList("v1", "v2"), -5.5)); in getSamples()
[all …]
DPrometheusStatsCollectorTest.java56 BucketBoundaries.create(Arrays.asList(-5.0, 0.0, 5.0));
68 DistributionData.create(4.4, 5, -3.2, 15.7, 135.22, Arrays.asList(0L, 2L, 2L, 1L));
71 VIEW_NAME, DESCRIPTION, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(K1, K2), CUMULATIVE);
78 Arrays.asList(K1, LE_TAG_KEY),
84 VIEW, ImmutableMap.of(Arrays.asList(V1, V2), DISTRIBUTION_DATA), CUMULATIVE_DATA);
88 ImmutableMap.of(Arrays.asList(V1, V2), DISTRIBUTION_DATA),
110 Arrays.asList( in testCollect()
113 Arrays.asList("k1", "k2", "le"), in testCollect()
114 Arrays.asList("v1", "v2", "-5.0"), in testCollect()
118 Arrays.asList("k1", "k2", "le"), in testCollect()
[all …]
/external/guava/guava-tests/test/com/google/common/primitives/
DBooleansTest.java149 List<boolean[]> ordered = Arrays.asList( in testLexicographicalComparator()
171 List<Boolean> none = Arrays.<Boolean>asList(); in testToArray()
174 List<Boolean> one = Arrays.asList(false); in testToArray()
179 List<Boolean> three = Arrays.asList(false, false, true); in testToArray()
182 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); in testToArray()
192 List<Boolean> list = Booleans.asList(VALUES).subList(0, i); in testToArray_threadSafe()
206 List<Boolean> list = Arrays.asList(false, true, null); in testToArray_withNull()
215 assertTrue(Booleans.asList(EMPTY).isEmpty()); in testAsListIsEmpty()
216 assertFalse(Booleans.asList(ARRAY_FALSE).isEmpty()); in testAsListIsEmpty()
220 assertEquals(0, Booleans.asList(EMPTY).size()); in testAsListSize()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/primitives/super/com/google/common/primitives/
DBooleansTest.java146 List<boolean[]> ordered = Arrays.asList( in testLexicographicalComparator()
162 List<Boolean> none = Arrays.<Boolean>asList(); in testToArray()
165 List<Boolean> one = Arrays.asList(false); in testToArray()
170 List<Boolean> three = Arrays.asList(false, false, true); in testToArray()
173 assertTrue(Arrays.equals(array, Booleans.toArray(Booleans.asList(array)))); in testToArray()
183 List<Boolean> list = Booleans.asList(VALUES).subList(0, i); in testToArray_threadSafe()
197 List<Boolean> list = Arrays.asList(false, true, null); in testToArray_withNull()
206 assertTrue(Booleans.asList(EMPTY).isEmpty()); in testAsListIsEmpty()
207 assertFalse(Booleans.asList(ARRAY_FALSE).isEmpty()); in testAsListIsEmpty()
211 assertEquals(0, Booleans.asList(EMPTY).size()); in testAsListSize()
[all …]
/external/opencensus-java/contrib/grpc_metrics/src/main/java/io/opencensus/contrib/grpc/metrics/
DRpcViewConstants.java84 Arrays.asList(
104 Arrays.asList(
112 Arrays.asList(
121 Arrays.asList(
172 Arrays.asList(RPC_STATUS, RPC_METHOD),
188 Arrays.asList(RPC_METHOD),
204 Arrays.asList(RPC_METHOD),
220 Arrays.asList(RPC_METHOD),
236 Arrays.asList(RPC_METHOD),
252 Arrays.asList(RPC_METHOD),
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultisetsTest.java73 HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty()
80 Iterable<String> toRemove = Arrays.asList("a", "b", "a"); in testRemoveOccurrencesIterableEmpty()
88 HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty()
94 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion()
96 Arrays.asList("a", "b", "b", "c")); in testUnion()
101 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
102 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
108 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEmptyNonempty()
113 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionNonemptyEmpty()
120 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testIntersectEmptyNonempty()
[all …]
DImmutableMultisetTest.java20 import static java.util.Arrays.asList;
48 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement()
53 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements()
58 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements()
63 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements()
68 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), in testCreation_fiveElements()
75 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), in testCreation_sixElements()
83 HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), in testCreation_sevenElements()
96 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_arrayOfOneElement()
125 assertEquals(HashMultiset.create(asList("a")), multiset); in testCopyOf_collection_oneElement()
[all …]
DListsTest.java21 import static java.util.Arrays.asList;
52 = asList(0, 1, 1);
76 = Lists.newLinkedList(asList(1, 2, 3, 4));
79 = asList("1", "2", "3", "4");
96 assertEquals(asList('a', 'b', 'c'), chars); in testCharactersOfIsView()
99 asList('a', 'b', 'c', 'd', 'e', 'f'), chars); in testCharactersOfIsView()
102 asList('a', 'b', 'c', 'd', 'e'), chars); in testCharactersOfIsView()
192 List<String> otherWay = asList("foo", "bar", "baz"); in testArraysAsList()
227 List<String> list = Lists.asList("foo", new String[0]); in testAsList1Small()
238 return Lists.asList("foo", new String[0]).iterator(); in testAsList1Small()
[all …]
DImmutableSortedSetTest.java20 import static java.util.Arrays.asList;
374 copyOf(asList("e", "a", "f", "b", "d", "c")); in testCopyOf_ordering()
380 copyOf(asList("e", "a", "e", "f", "b", "b", "d", "a", "c")); in testCopyOf_ordering_dupes()
406 SortedSet<String> set = copyOf(asList("e", "a", "f", "b", "d", "c")); in testCopyOf_comparator()
428 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c"))); in testCopyOf_sortedSet_ordering()
439 ImmutableSortedSet.copyOf(STRING_LENGTH, asList( in testCopyOfExplicit_ordering()
446 ImmutableSortedSet.copyOf(STRING_LENGTH, asList( in testCopyOfExplicit_ordering_dupes()
454 ImmutableSortedSet.copyOf(STRING_LENGTH, asList( in testCopyOfExplicit_comparator()
490 asList("in", "the", "quick", "jumped", "over", "a")); in testCopyOfSorted_natural_ordering()
497 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a")); in testCopyOfSorted_natural_comparator()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DMultisetsTest.java75 HashMultiset.create(Arrays.asList("a", "b", "a")); in testRetainOccurrencesEmpty()
82 Iterable<String> toRemove = Arrays.asList("a", "b", "a"); in testRemoveOccurrencesIterableEmpty()
90 HashMultiset.create(Arrays.asList("a", "b", "a")); in testRemoveOccurrencesMultisetEmpty()
96 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnion()
98 Arrays.asList("a", "b", "b", "c")); in testUnion()
103 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
104 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEqualMultisets()
110 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionEmptyNonempty()
115 Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testUnionNonemptyEmpty()
122 Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a")); in testIntersectEmptyNonempty()
[all …]
DImmutableMultisetTest.java21 import static java.util.Arrays.asList;
88 return ImmutableMultiset.copyOf(elements).asList(); in suite()
120 return elementSet.asList(); in suite()
140 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement()
145 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements()
150 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements()
155 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements()
160 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), in testCreation_fiveElements()
167 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), in testCreation_sixElements()
175 HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), in testCreation_sevenElements()
[all …]
DLinkedHashMultimapTest.java25 import static java.util.Arrays.asList;
115 multimap.putAll("foo", Arrays.asList(-1, 2, 4)); in testToString()
116 multimap.putAll("bar", Arrays.asList(2, 3)); in testToString()
194 assertThat(multimap.replaceValues("foo", asList(6, 7))).has().exactly(5, 3).inOrder(); in testOrderingUpdates()
285 newLinkedHashSet(asList(2, 3, 4, 7, 8)), in testGetIteration()
291 multimap.putAll("foo", asList(2, 3, 4)); in testGetIteration()
292 multimap.putAll("bar", asList(5, 6)); in testGetIteration()
293 multimap.putAll("foo", asList(7, 8)); in testGetIteration()
306 Set<Entry<String, Integer>> set = Sets.newLinkedHashSet(asList( in testEntriesIteration()
319 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration()
[all …]
DImmutableSortedMultisetTest.java19 import static java.util.Arrays.asList;
79 return ImmutableSortedMultiset.copyOf(elements).asList(); in suite()
102 return builder.build().elementSet().asList(); in suite()
127 assertEquals(HashMultiset.create(asList("a")), multiset); in testCreation_oneElement()
132 assertEquals(HashMultiset.create(asList("a", "b")), multiset); in testCreation_twoElements()
137 assertEquals(HashMultiset.create(asList("a", "b", "c")), multiset); in testCreation_threeElements()
142 assertEquals(HashMultiset.create(asList("a", "b", "c", "d")), multiset); in testCreation_fourElements()
147 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e")), multiset); in testCreation_fiveElements()
152 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f")), multiset); in testCreation_sixElements()
157 assertEquals(HashMultiset.create(asList("a", "b", "c", "d", "e", "f", "g")), multiset); in testCreation_sevenElements()
[all …]
DLinkedListMultimapTest.java26 import static java.util.Arrays.asList;
125 assertTrue(multimap.replaceValues("foo", Arrays.asList(2, 4)) in testReplaceValuesRandomAccess()
127 assertTrue(multimap.replaceValues("bar", Arrays.asList(2, 4)) in testReplaceValuesRandomAccess()
220 map.replaceValues("bar", asList(1, 2)); in testLinkedReplaceValues()
232 assertEquals(asList(1, 2), foos); in testLinkedClear()
308 entry.setValue(Arrays.<Integer>asList()); in testLinkedAsMapEntries()
364 multimap.putAll("foo", asList(2, 3)); in testEntriesIteration()
365 multimap.putAll("bar", asList(4, 5)); in testEntriesIteration()
385 multimap.putAll("foo", asList(2, 3)); in testKeysIteration()
386 multimap.putAll("bar", asList(4, 5)); in testKeysIteration()
[all …]
DListsTest.java22 import static java.util.Arrays.asList;
69 = asList(0, 1, 1);
93 = Lists.newLinkedList(asList(1, 2, 3, 4));
96 = asList("1", "2", "3", "4");
119 return Lists.asList(elements[0], rest); in suite()
132 return Lists.asList(elements[0], elements[1], rest); in suite()
192 Lists.newLinkedList(asList(elements)); in suite()
219 return Lists.reverse(asList(reverseElements)); in suite()
265 assertEquals(asList('a', 'b', 'c'), chars); in testCharactersOfIsView()
268 asList('a', 'b', 'c', 'd', 'e', 'f'), chars); in testCharactersOfIsView()
[all …]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DCommandLineSupportTest.java52 assertEquals("", CommandLineSupport.quote(Arrays.<String> asList())); in testQuoteList1()
57 assertEquals("a", CommandLineSupport.quote(Arrays.asList("a"))); in testQuoteList2()
63 CommandLineSupport.quote(Arrays.asList("a", "b", "c"))); in testQuoteList3()
69 CommandLineSupport.quote(Arrays.asList("a", "b b", "c"))); in testQuoteList4()
74 assertEquals(Arrays.asList(), CommandLineSupport.split(null)); in testSplit1()
79 assertEquals(Arrays.asList(), CommandLineSupport.split("")); in testSplit2()
84 assertEquals(Arrays.asList("abc"), CommandLineSupport.split("abc")); in testSplit3()
89 assertEquals(Arrays.asList("aa", "bbbb", "cccccc"), in testSplit4()
95 assertEquals(Arrays.asList("a a", "b b "), in testSplit5()
101 assertEquals(Arrays.asList("a\"c"), CommandLineSupport.split("a\\\"c")); in testSplit6()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DTimeSeriesTest.java54 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1); in testGet_TimeSeries()
71 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in create_WithNullLabelValue()
86 List<Point> points = Arrays.asList(POINT_1, null); in create_WithNullPoint()
96 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), POINT_1, TIMESTAMP_1); in testGet_WithOnePointTimeSeries()
113 List<LabelValue> labelValues = Arrays.asList(LABEL_VALUE_1, null); in createWithOnePoint_WithNullLabelValue()
131 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1), in testEquals()
133 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_1)) in testEquals()
136 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), null), in testEquals()
138 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), null)) in testEquals()
141 Arrays.asList(LABEL_VALUE_1, LABEL_VALUE_2), Arrays.asList(POINT_1), TIMESTAMP_2)) in testEquals()
[all …]
DDistributionTest.java82 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 3.0); in createAndGet_ExplicitBuckets()
110 BucketOptions.explicitOptions(Arrays.asList(1.0, null, 3.0)); in createAndGet_PreventNullExplicitBuckets()
134 List<Double> bucketBounds = Arrays.asList(1.0, 5.0, 2.0); in createBucketOptions_UnorderedBucketBounds()
149 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createAndGet_Distribution()
152 Arrays.asList( in createAndGet_Distribution()
209 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_NegativeCount()
213 Arrays.asList(Bucket.create(3), Bucket.create(1), Bucket.create(2), Bucket.create(4)); in createDistribution_NegativeCount()
221 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_NegativeSumOfSquaredDeviations()
225 Arrays.asList(Bucket.create(0), Bucket.create(0), Bucket.create(0), Bucket.create(0)); in createDistribution_NegativeSumOfSquaredDeviations()
233 List<Double> bucketBounds = Arrays.asList(1.0, 2.0, 5.0); in createDistribution_ZeroCountAndPositiveMean()
[all …]
/external/testng/src/test/java/org/testng/remote/strprotocol/
DTestResultMessageTest.java20 { null, new Class[] { null }, Arrays.asList() }, in getP()
22 new Class[] { byte[].class }, Arrays.asList("[1]") }, in getP()
24 new Class[] { short[].class }, Arrays.asList("[1]") }, in getP()
26 new Class[] { long[].class }, Arrays.asList("[1]") }, in getP()
28 new Class[] { int[].class }, Arrays.asList("[1,2,3]") }, in getP()
31 Arrays.asList("[true,false]") }, in getP()
33 new Class[] { int[].class }, Arrays.asList("[a,b,c]") }, in getP()
36 Arrays.asList("[1.1,2.2,3.3]") }, in getP()
39 Arrays.asList("[1.1,2.2,3.3]") }, in getP()
42 Arrays.asList("[this is a string,false]") }, in getP()
[all …]
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/collection/
DIsIterableContainingInRelativeOrderTest.java10 import static java.util.Arrays.asList;
25 assertMatches("Single item iterable", containsInRelativeOrder(1), asList(1)); in testMatchingSingleItemIterable()
29 assertMatches("Multiple item iterable", containsInRelativeOrder(1, 2, 3), asList(1, 2, 3)); in testMatchingMultipleItemIterable()
33 … assertMatches("More elements at beginning", containsInRelativeOrder(2, 3, 4), asList(1, 2, 3, 4)); in testMatchesWithMoreElementsThanExpectedAtBeginning()
37 assertMatches("More elements at end", containsInRelativeOrder(1, 2, 3), asList(1, 2, 3, 4)); in testMatchesWithMoreElementsThanExpectedAtEnd()
41 assertMatches("More elements in between", containsInRelativeOrder(1, 3), asList(1, 2, 3)); in testMatchesWithMoreElementsThanExpectedInBetween()
45 assertMatches("Sub section of iterable", containsInRelativeOrder(2, 3), asList(1, 2, 3, 4)); in testMatchesSubSection()
49 … single gaps without a first or last match", containsInRelativeOrder(2, 4), asList(1, 2, 3, 4, 5)); in testMatchesWithSingleGapAndNotFirstOrLast()
53 …"Sub section with many gaps iterable", containsInRelativeOrder(2, 4, 6), asList(1, 2, 3, 4, 5, 6, … in testMatchingSubSectionWithManyGaps()
57 List<WithValue> valueList = asList(make(1), make(2)); in testDoesNotMatchWithFewerElementsThanExpected()
[all …]
DIsCollectionWithSizeTest.java11 import static java.util.Arrays.asList;
23 assertMatches("correct size", hasSize(equalTo(2)), asList(null, null)); in testMatchesWhenSizeIsCorrect()
24 …assertMismatchDescription("collection size was <3>", hasSize(equalTo(2)), asList(null, null, null)… in testMatchesWhenSizeIsCorrect()
28 Collection<Object> list = asList(null, null); in testMatchesCollectionWhenSizeIsCorrectUsingObjectElementType()
34 Collection<String> list = asList("a", "b"); in testMatchesCollectionWhenSizeIsCorrectUsingStringElementType()
40 Collection<?> list = asList("a", "b"); in testMatchesCollectionWhenSizeIsCorrectUsingWildcardElementType()
46 List<Object> list = asList(null, null); in testMatchesListWhenSizeIsCorrectUsingObjectElementType()
52 List<String> list = asList("a", "b"); in testMatchesListWhenSizeIsCorrectUsingStringElementType()
58 List<?> list = asList("a", "b"); in testMatchesListWhenSizeIsCorrectUsingWildcardElementType()
64 assertMatches("correct size", hasSize(2), asList(null, null)); in testProvidesConvenientShortcutForHasSizeEqualTo()
[all …]
/external/mockito/src/test/java/org/mockitousage/internal/junit/
DUnusedStubbingsFinderTest.java17 import static java.util.Arrays.asList;
37 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_interactions()
38 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_interactions()
47 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_stubbings()
48 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_stubbings()
58 assertEquals(0, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in no_unused_stubbings()
59 assertEquals(0, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in no_unused_stubbings()
68 assertEquals(1, finder.getUnusedStubbings((List) asList(mock1, mock2)).size()); in unused_stubbings()
69 assertEquals(1, finder.getUnusedStubbingsByLocation((List) asList(mock1, mock2)).size()); in unused_stubbings()
81 UnusedStubbings stubbings = finder.getUnusedStubbings((List) asList(mock1, mock2)); in some_unused_stubbings()
[all …]
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DViewManagerImplTest.java109 Arrays.asList(
128 return createCumulativeView(VIEW_NAME, MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in createCumulativeView()
150 View.Name.create("View 1"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in testGetAllExportedViews()
153 View.Name.create("View 2"), MEASURE_DOUBLE, DISTRIBUTION, Arrays.asList(KEY)); in testGetAllExportedViews()
160 Arrays.asList(KEY), in testGetAllExportedViews()
178 Arrays.asList(KEY), in getAllExportedViewsResultIsUnmodifiable()
189 Arrays.asList(KEY), in getAllExportedViewsResultIsUnmodifiable()
203 Arrays.asList(KEY), in testRegisterAndGetIntervalView()
227 Arrays.asList(KEY), in preventRegisteringDifferentViewWithSameName()
235 Arrays.asList(KEY), in preventRegisteringDifferentViewWithSameName()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DAggregationDataTest.java58 DistributionData.create(7.7, 10, 1.1, 9.9, 32.2, Arrays.asList(4L, 1L, 5L)); in testCreateDistributionData()
73 7.7, 10, 1.1, 9.9, 32.2, Arrays.asList(4L, 1L), Arrays.asList(exemplar1, exemplar2)); in testCreateDistributionDataWithExemplar()
119 DistributionData.create(1, 1, 1, 1, 0, Arrays.asList(0L, 1L, null)); in preventNullBucket()
126 DistributionData.create(1, 1, 1, 1, 0, Arrays.asList(0L, 1L, 1L), null); in preventNullExemplarList()
134 1, 1, 1, 1, 0, Arrays.asList(0L, 1L, 1L), Collections.<Exemplar>singletonList(null)); in preventNullExemplar()
141 DistributionData.create(1, 1, 10, 1, 0, Arrays.asList(0L, 1L, 0L)); in preventMinIsGreaterThanMax()
153 DistributionData.create(10, 10, 1, 1, 0, Arrays.asList(0L, 10L, 0L)), in testEquals()
154 DistributionData.create(10, 10, 1, 1, 0, Arrays.asList(0L, 10L, 0L))) in testEquals()
155 .addEqualityGroup(DistributionData.create(10, 10, 1, 1, 0, Arrays.asList(0L, 10L, 100L))) in testEquals()
156 .addEqualityGroup(DistributionData.create(110, 10, 1, 1, 0, Arrays.asList(0L, 10L, 0L))) in testEquals()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DSerializingExecutorTest.java87 assertEquals(Arrays.asList(1), runs); in serial()
90 assertEquals(Arrays.asList(1), runs); in serial()
92 assertEquals(Arrays.asList(1, 2), runs); in serial()
102 assertEquals(Arrays.asList(1, 2, 3), runs); in parallel()
116 assertEquals(Arrays.asList(1, 2, 3), runs); in reentrant()
134 assertEquals(Arrays.asList(1, 2, 3), runs); in testFirstRunnableThrows()
151 assertEquals(Arrays.asList(1, 2, 3), runs); in lastRunnableThrows()
155 assertEquals(Arrays.asList(1, 2, 3), runs); in lastRunnableThrows()
157 assertEquals(Arrays.asList(1, 2, 3, 4), runs); in lastRunnableThrows()
183 assertEquals(Arrays.asList(2, 3), runs); in firstExecuteThrows()
[all …]

12345678910>>...55