Home
last modified time | relevance | path

Searched refs:SomeEnum (Results 1 – 15 of 15) sorted by relevance

/external/guava/guava-tests/test/com/google/common/collect/
DSetsTest.java322 private enum SomeEnum {
330 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
332 assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
334 units.remove(SomeEnum.B);
339 units.add(SomeEnum.C);
346 Set<SomeEnum> units = Stream.of(SomeEnum.D, SomeEnum.B).collect(Sets.toImmutableEnumSet());
348 assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
352 Set<SomeEnum> units = Stream.<SomeEnum>empty().collect(Sets.toImmutableEnumSet());
358 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
360 assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
[all …]
DMapsTest.java304 public enum SomeEnum { enum in MapsTest
309 EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class); in testEnumMap()
311 map.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMap()
312 assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map); in testEnumMap()
317 Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null); in testEnumMapNullClass()
324 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEnumMap()
325 original.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMapWithInitialEnumMap()
326 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEnumMap()
331 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEmptyEnumMap()
332 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEmptyEnumMap()
[all …]
/external/guava/android/guava-tests/test/com/google/common/collect/
DSetsTest.java321 private enum SomeEnum {
329 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
331 assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
333 units.remove(SomeEnum.B);
338 units.add(SomeEnum.C);
346 Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
348 assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
350 Set<SomeEnum> copy = SerializableTester.reserializeAndAssert(units);
355 ImmutableSet<SomeEnum> none = Sets.immutableEnumSet(MinimalIterable.<SomeEnum>of());
358 ImmutableSet<SomeEnum> one = Sets.immutableEnumSet(MinimalIterable.of(SomeEnum.B));
[all …]
DMapsTest.java304 public enum SomeEnum { enum in MapsTest
309 EnumMap<SomeEnum, Integer> map = Maps.newEnumMap(SomeEnum.class); in testEnumMap()
311 map.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMap()
312 assertEquals(Collections.singletonMap(SomeEnum.SOME_INSTANCE, 0), map); in testEnumMap()
317 Maps.<SomeEnum, Long>newEnumMap((Class<MapsTest.SomeEnum>) null); in testEnumMapNullClass()
324 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEnumMap()
325 original.put(SomeEnum.SOME_INSTANCE, 0); in testEnumMapWithInitialEnumMap()
326 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEnumMap()
331 EnumMap<SomeEnum, Integer> original = Maps.newEnumMap(SomeEnum.class); in testEnumMapWithInitialEmptyEnumMap()
332 EnumMap<SomeEnum, Integer> copy = Maps.newEnumMap(original); in testEnumMapWithInitialEmptyEnumMap()
[all …]
/external/rust/crates/num-derive/tests/
Dissue-6.rs7 pub enum SomeEnum { enum
14 assert!(SomeEnum::from_u64(1).is_some()); in test_trivial_numeric_casts()
15 assert!(SomeEnum::from_i64(-1).is_none()); in test_trivial_numeric_casts()
16 assert_eq!(SomeEnum::A.to_u64(), Some(1)); in test_trivial_numeric_casts()
Dissue-9.rs9 pub enum SomeEnum { enum
15 assert!(SomeEnum::from_u64(1).is_some()); in test_unused_qualifications()
16 assert!(SomeEnum::from_i64(-1).is_none()); in test_unused_qualifications()
17 assert!(SomeEnum::A.to_i64().is_some()); in test_unused_qualifications()
/external/python/apitools/apitools/base/py/
Dencoding_test.py198 class SomeEnum(messages.Enum): class in MessageWithRemappings
202 enum_field = messages.EnumField(SomeEnum, 1)
203 double_encoding = messages.EnumField(SomeEnum, 2)
205 repeated_enum = messages.EnumField(SomeEnum, 4, repeated=True)
211 class SomeEnum(messages.Enum): class in MessageWithPackageAndRemappings
215 enum_field = messages.EnumField(SomeEnum, 1)
230 encoding.AddCustomJsonEnumMapping(MessageWithRemappings.SomeEnum,
532 enum_field=MessageWithRemappings.SomeEnum.enum_value)
541 MessageWithRemappings.SomeEnum.enum_value,
542 MessageWithRemappings.SomeEnum.second_value,
[all …]
/external/llvm-project/clang/test/OpenMP/
Dtarget_map_codegen_04.cpp45 SomeEnum = 0x09 in implicit_maps_nested_integer_and_enum() enumerator
68 i += SomeEnum; in implicit_maps_nested_integer_and_enum()
/external/llvm-project/clang/test/Index/Core/
Dexternal-source-symbol-attr.m81 typedef NS_ENUM(SomeEnum, int) {
89 void test2(I3 *i3, id<ExtProt2> prot2, SomeEnum some) {
92 // CHECK: [[@LINE-3]]:40 | enum/Swift | SomeEnum | c:@M@modname@E@SomeEnum |
100 …// CHECK: [[@LINE-1]]:10 | enumerator/Swift | SomeEnumFirst | c:@M@modname@E@SomeEnum@SomeEnumFirs…
/external/robolectric-shadows/processor/src/test/resources/org/robolectric/annotation/processing/shadows/
DDocumentedObjectShadow.java19 public enum SomeEnum { enum in DocumentedObjectShadow
/external/clang/test/CodeGenObjCXX/
Ddesignated-initializers.mm38 enum SomeEnum : unsigned char {
/external/llvm-project/clang/test/CodeGenObjCXX/
Ddesignated-initializers.mm38 enum SomeEnum : unsigned char {
/external/clang/test/OpenMP/
Dtarget_map_codegen.cpp219 SomeEnum = 0x09 in implicit_maps_nested_integer_and_enum() enumerator
242 i += SomeEnum; in implicit_maps_nested_integer_and_enum()
/external/python/cpython3/Lib/test/
Dtest_enum.py1894 class SomeEnum(Enum): class
1929 class CoolColor(StrMixin, SomeEnum, Enum):
1948 class CoolestColor(StrMixin, SomeEnum, AnotherEnum):
1958 class ConfusedColor(StrMixin, AnotherEnum, SomeEnum):
1968 class ReformedColor(StrMixin, IntEnum, SomeEnum, AnotherEnum):
/external/llvm-project/clang/test/SemaObjC/
Dunguarded-availability.m250 } SomeEnum; typedef