Home
last modified time | relevance | path

Searched refs:TestEnum (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/typescript/tests/baselines/reference/
DdeclarationEmitStringEnumUsedInNonlocalSpread.types2 export const enum TestEnum {
3 >TestEnum : TestEnum
6 >Test1 : TestEnum.Test1
10 >Test2 : TestEnum.Test2
15 [TestEnum.Test1]: string;
16 >[TestEnum.Test1] : string
17 >TestEnum.Test1 : TestEnum.Test1
18 >TestEnum : typeof TestEnum
19 >Test1 : TestEnum.Test1
21 [TestEnum.Test2]: string;
[all …]
DdeclarationEmitStringEnumUsedInNonlocalSpread.symbols2 export const enum TestEnum {
3 >TestEnum : Symbol(TestEnum, Decl(class.ts, 0, 0))
6 >Test1 : Symbol(TestEnum.Test1, Decl(class.ts, 0, 28))
9 >Test2 : Symbol(TestEnum.Test2, Decl(class.ts, 1, 21))
15 [TestEnum.Test1]: string;
16 >[TestEnum.Test1] : Symbol(ITest[TestEnum.Test1], Decl(class.ts, 5, 24))
17 >TestEnum.Test1 : Symbol(TestEnum.Test1, Decl(class.ts, 0, 28))
18 >TestEnum : Symbol(TestEnum, Decl(class.ts, 0, 0))
19 >Test1 : Symbol(TestEnum.Test1, Decl(class.ts, 0, 28))
21 [TestEnum.Test2]: string;
[all …]
DenumTagImported.symbols2 /** @typedef {import("./mod1").TestEnum} TE */
7 /** @type {import("./mod1").TestEnum} */
12 import { TestEnum } from "./mod1"
13 >TestEnum : Symbol(TestEnum, Decl(value.js, 0, 8))
15 /** @type {TestEnum} */
16 const tist = TestEnum.ADD
18 >TestEnum.ADD : Symbol(ADD, Decl(mod1.js, 1, 25))
19 >TestEnum : Symbol(TestEnum, Decl(value.js, 0, 8))
25 export const TestEnum = {
26 >TestEnum : Symbol(TestEnum, Decl(mod1.js, 1, 12), Decl(mod1.js, 0, 4))
DenumTagImported.types2 /** @typedef {import("./mod1").TestEnum} TE */
8 /** @type {import("./mod1").TestEnum} */
14 import { TestEnum } from "./mod1"
15 >TestEnum : { ADD: string; REMOVE: string; }
17 /** @type {TestEnum} */
18 const tist = TestEnum.ADD
20 >TestEnum.ADD : string
21 >TestEnum : { ADD: string; REMOVE: string; }
27 export const TestEnum = {
28 >TestEnum : { ADD: string; REMOVE: string; }
DdeclarationEmitStringEnumUsedInNonlocalSpread.js4 export const enum TestEnum {
10 [TestEnum.Test1]: string;
11 [TestEnum.Test2]: string;
17 [TestEnum.Test1]: '123',
18 [TestEnum.Test2]: '123',
96 export declare const enum TestEnum {
101 [TestEnum.Test1]: string;
102 [TestEnum.Test2]: string;
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DBitSetIteratorTests.cpp89 enum class TestEnum { A, B, C, D, E, F, G, H, I, J, EnumCount }; enum in EnumBitSetIteratorTest
91 static constexpr size_t kEnumCount = static_cast<size_t>(TestEnum::EnumCount);
92 ityp::bitset<TestEnum, kEnumCount> mStateBits;
97 std::set<TestEnum> originalValues; in TEST_F()
98 originalValues.insert(TestEnum::B); in TEST_F()
99 originalValues.insert(TestEnum::F); in TEST_F()
100 originalValues.insert(TestEnum::C); in TEST_F()
101 originalValues.insert(TestEnum::I); in TEST_F()
103 for (TestEnum value : originalValues) { in TEST_F()
107 std::set<TestEnum> readValues; in TEST_F()
[all …]
DMathTests.cpp24 enum class TestEnum { enum
33 struct IsDawnBitmask<wgpu::TestEnum> {
304 ASSERT_TRUE(IsSubset(wgpu::TestEnum::A, wgpu::TestEnum::A)); in TEST()
305 ASSERT_TRUE(IsSubset(wgpu::TestEnum::A, wgpu::TestEnum::A | wgpu::TestEnum::B)); in TEST()
306 ASSERT_FALSE(IsSubset(wgpu::TestEnum::C, wgpu::TestEnum::A | wgpu::TestEnum::B)); in TEST()
307 ASSERT_FALSE(IsSubset(wgpu::TestEnum::A | wgpu::TestEnum::C, wgpu::TestEnum::A)); in TEST()
/third_party/flatbuffers/tests/MyGame/Example/
DNestedStruct.cs21 …public MyGame.Example.TestEnum B { get { return (MyGame.Example.TestEnum)__p.bb.GetSbyte(__p.bb_po…
22 public void MutateB(MyGame.Example.TestEnum b) { __p.bb.PutSbyte(__p.bb_pos + 8, (sbyte)b); } in MutateB()
23 …public MyGame.Example.TestEnum C(int j) { return (MyGame.Example.TestEnum)__p.bb.GetSbyte(__p.bb_p… in C()
24 …public void MutateC(int j, MyGame.Example.TestEnum c) { __p.bb.PutSbyte(__p.bb_pos + 9 + j * 1, (s… in MutateC()
28 …dStruct(FlatBufferBuilder builder, int[] A, MyGame.Example.TestEnum B, MyGame.Example.TestEnum[] C… in CreateNestedStruct()
52 _o.C = new MyGame.Example.TestEnum[2]; in UnPackTo()
76 public MyGame.Example.TestEnum B { get; set; }
78 public MyGame.Example.TestEnum[] C { get; set; }
84 this.B = MyGame.Example.TestEnum.A; in NestedStructT()
85 this.C = new MyGame.Example.TestEnum[2]; in NestedStructT()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DProto2ExtensionLookupSchemaTest.java39 import com.google.protobuf.testing.Proto2Testing.Proto2Message.TestEnum;
85 assertNull(TestEnum.forNumber(outOfRange)); in testUnknownEnum()
92 (long) TestEnum.ONE_VALUE); in testUnknownEnum()
100 (long) TestEnum.TWO_VALUE); in testUnknownEnum()
105 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in testUnknownEnum()
107 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in testUnknownEnum()
110 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in testUnknownEnum()
112 packedOut.writeEnumNoTag(TestEnum.TWO_VALUE); in testUnknownEnum()
162 assertEquals(TestEnum.ONE, parsed.getExtension(Proto2Testing.fieldEnumList30, 0)); in testUnknownEnum()
163 assertEquals(TestEnum.TWO, parsed.getExtension(Proto2Testing.fieldEnumList30, 1)); in testUnknownEnum()
[all …]
DAbstractProto2LiteSchemaTest.java39 import com.google.protobuf.testing.Proto2TestingLite.Proto2MessageLite.TestEnum;
144 assertNull(TestEnum.forNumber(outOfRange)); in unknownEnum()
152 (long) TestEnum.ONE_VALUE); in unknownEnum()
160 (long) TestEnum.TWO_VALUE); in unknownEnum()
165 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in unknownEnum()
167 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in unknownEnum()
170 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in unknownEnum()
172 packedOut.writeEnumNoTag(TestEnum.TWO_VALUE); in unknownEnum()
190 assertEquals(TestEnum.ONE, parsed.getFieldEnumList30(0)); in unknownEnum()
191 assertEquals(TestEnum.TWO, parsed.getFieldEnumList30(1)); in unknownEnum()
[all …]
DAbstractProto2SchemaTest.java39 import com.google.protobuf.testing.Proto2Testing.Proto2Message.TestEnum;
139 assertNull(TestEnum.forNumber(outOfRange)); in unknownEnum()
146 (long) TestEnum.ONE_VALUE); in unknownEnum()
154 (long) TestEnum.TWO_VALUE); in unknownEnum()
159 CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE) in unknownEnum()
161 + CodedOutputStream.computeUInt32SizeNoTag(TestEnum.ONE_VALUE); in unknownEnum()
164 packedOut.writeEnumNoTag(TestEnum.ONE_VALUE); in unknownEnum()
166 packedOut.writeEnumNoTag(TestEnum.TWO_VALUE); in unknownEnum()
210 assertEquals(TestEnum.ONE, parsed.getFieldEnumList30(0)); in unknownEnum()
211 assertEquals(TestEnum.TWO, parsed.getFieldEnumList30(1)); in unknownEnum()
[all …]
/third_party/flatbuffers/tests/rust_usage_test/tests/
Darrays_test.rs17 TestEnum::A, in create_serialized_example_with_generated_code()
18 &[TestEnum::C, TestEnum::B], in create_serialized_example_with_generated_code()
23 TestEnum::B, in create_serialized_example_with_generated_code()
24 &[TestEnum::B, TestEnum::A], in create_serialized_example_with_generated_code()
75 assert_eq!(nested_struct1.b(), TestEnum::A); in serialized_example_is_accessible_and_correct()
77 assert_eq!(nested_struct1.c().get(0), TestEnum::C); in serialized_example_is_accessible_and_correct()
78 assert_eq!(nested_struct1.c().get(1), TestEnum::B); in serialized_example_is_accessible_and_correct()
87 assert_eq!(nested_struct2.b(), TestEnum::B); in serialized_example_is_accessible_and_correct()
89 assert_eq!(nested_struct2.c().get(0), TestEnum::B); in serialized_example_is_accessible_and_correct()
90 assert_eq!(nested_struct2.c().get(1), TestEnum::A); in serialized_example_is_accessible_and_correct()
[all …]
/third_party/typescript/tests/cases/compiler/
DdeclarationEmitStringEnumUsedInNonlocalSpread.ts3 export const enum TestEnum { enum
9 [TestEnum.Test1]: string;
10 [TestEnum.Test2]: string;
16 [TestEnum.Test1]: '123',
17 [TestEnum.Test2]: '123',
/third_party/flatbuffers/tests/
Darrays_test_generated.rs34 pub const ENUM_VALUES_TEST_ENUM: [TestEnum; 3] = [
35 TestEnum::A,
36 TestEnum::B,
37 TestEnum::C,
42 pub struct TestEnum(pub i8); struct
44 impl TestEnum { impl
66 impl std::fmt::Debug for TestEnum { implementation
75 impl<'a> flatbuffers::Follow<'a> for TestEnum { implementation
86 impl flatbuffers::Push for TestEnum { implementation
87 type Output = TestEnum;
[all …]
Darrays_test_generated.h33 enum class TestEnum : int8_t { enum
41 inline const TestEnum (&EnumValuesTestEnum())[3] { in EnumValuesTestEnum()
42 static const TestEnum values[] = { in EnumValuesTestEnum()
43 TestEnum::A, in EnumValuesTestEnum()
44 TestEnum::B, in EnumValuesTestEnum()
45 TestEnum::C in EnumValuesTestEnum()
60 inline const char *EnumNameTestEnum(TestEnum e) { in EnumNameTestEnum()
61 if (flatbuffers::IsOutRange(e, TestEnum::A, TestEnum::C)) return ""; in EnumNameTestEnum()
88 NestedStruct(MyGame::Example::TestEnum _b) in NestedStruct()
98 …:span<const int32_t, 2> _a, MyGame::Example::TestEnum _b, flatbuffers::span<const MyGame::Example:… in NestedStruct() argument
[all …]
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dgenerated_code.proto15 TestEnum optional_enum = 10;
27 repeated TestEnum repeated_enum = 30;
40 TestEnum oneof_enum = 50;
51 map<string, TestEnum> map_string_enum = 68;
62 enum TestEnum { enum
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_code.proto15 TestEnum optional_enum = 10;
27 repeated TestEnum repeated_enum = 30;
40 TestEnum oneof_enum = 50;
51 map<string, TestEnum> map_string_enum = 68;
62 enum TestEnum { enum
Druby_generated_code_proto2.proto15 optional TestEnum optional_enum = 10 [default = A];
27 repeated TestEnum repeated_enum = 30;
39 required TestEnum required_enum = 50;
52 TestEnum oneof_enum = 70;
63 enum TestEnum { enum
/third_party/protobuf/php/tests/
Dtest_util.php3 use Foo\TestEnum; alias
69 $m->setOptionalEnum(TestEnum::ONE);
89 self::appendHelper($m, 'RepeatedEnum', TestEnum::ZERO);
108 self::appendHelper($m, 'RepeatedEnum', TestEnum::ONE);
127 self::kvUpdateHelper($m, 'MapInt32Enum', 1, TestEnum::ONE);
151 $m->setOptionalEnum(TestEnum::TWO);
170 self::appendHelper($m, 'RepeatedEnum', TestEnum::TWO);
189 self::kvUpdateHelper($m, 'MapInt32Enum', 1, TestEnum::TWO);
208 self::kvUpdateHelper($m, 'MapInt32Enum', 2, TestEnum::TWO);
238 assert(TestEnum::ONE === $m->getOptionalEnum());
[all …]
/third_party/grpc/third_party/upb/tests/pb/
Dtest_decoder.proto4 enum TestEnum { enum
23 optional TestEnum f_enum = 14;
43 repeated TestEnum r_enum = 536869925;
62 optional TestEnum f_enum = 14;
82 repeated TestEnum r_enum = 536869925;
102 optional TestEnum f_enum = 14;
122 repeated TestEnum r_enum = 536869925;
/third_party/protobuf/ruby/tests/
Dbasic_test.proto34 optional TestEnum optional_enum = 11; field
46 repeated TestEnum repeated_enum = 22;
60 TestEnum singular_enum = 11;
67 enum TestEnum { enum
97 map<string, TestEnum> map_string_enum = 3;
120 TestEnum d = 4;
192 TestEnum optional_enum = 1;
193 repeated TestEnum repeated_enum = 2;
197 TestEnum const = 11;
Dgenerated_code.proto15 TestEnum optional_enum = 10;
27 repeated TestEnum repeated_enum = 30;
40 TestEnum oneof_enum = 50;
51 map<string, TestEnum> map_string_enum = 68;
65 enum TestEnum { enum
Dgenerated_code_proto2.proto15 optional TestEnum optional_enum = 10;
27 repeated TestEnum repeated_enum = 30;
39 required TestEnum required_enum = 50;
52 TestEnum oneof_enum = 70;
66 enum TestEnum { enum
/third_party/typescript/tests/cases/conformance/jsdoc/
DenumTagImported.ts12 import { TestEnum } from "./mod1"
14 const tist = TestEnum.ADD
20 export const TestEnum = { constant
/third_party/protobuf/java/core/src/test/proto/com/google/protobuf/
Dproto2_message_lite.proto42 enum TestEnum { enum
60 optional TestEnum field_enum_13 = 13;
77 repeated TestEnum field_enum_list_30 = 30 [packed = false];
91 repeated TestEnum field_enum_list_packed_44 = 44 [packed = true];
140 required TestEnum field_required_enum_83 = 83;
169 optional Proto2MessageLite.TestEnum field_enum_13 = 13;
187 repeated Proto2MessageLite.TestEnum field_enum_list_30 = 30 [packed = false];
202 repeated Proto2MessageLite.TestEnum field_enum_list_packed_44 = 44
222 map<bool, Proto2MessageLite.TestEnum> field_map_bool_enum_4 = 4;
239 map<fixed32, Proto2MessageLite.TestEnum> field_map_fixed32_enum_21 = 21;
[all …]

1234