Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 258) sorted by relevance

1234567891011

/thrift-3.4.0/lib/delphi/test/serializer/
DTestSerializer.Data.pas179 result := TOneOfEachImpl.Create;
180 result.setIm_true( TRUE);
181 result.setIm_false( FALSE);
182 result.setA_bite( ShortInt($D6));
183 result.setInteger16( 27000);
184 result.setInteger32( 1 shl 24);
185 result.setInteger64( Int64(6000) * Int64(1000) * Int64(1000));
187 result.setDouble_precision( db);
188 result.setSome_characters( 'JSON THIS! \"\1');
196 result.setZomg_unicode( UnicodeString( us));
[all …]
/thrift-3.4.0/lib/js/test/
Dtest-async.js52 client.testVoid(function(result) { argument
53 assert.equal(result, undefined);
62 client.testString('', function(result) { argument
63 assert.equal(result, '');
66 client.testString(stringTest, function(result) { argument
67 assert.equal(result, stringTest);
76 client.testString(specialCharacters, function(result) { argument
77 assert.equal(result, specialCharacters);
84 client.testDouble(0, function(result) { argument
85 assert.equal(result, 0);
[all …]
Dtest_handler.js30 testVoid: function(result) { argument
32 result(null);
34 testString: function(thing, result) { argument
36 result(null, thing);
38 testByte: function(thing, result) { argument
40 result(null, thing);
42 testI32: function(thing, result) { argument
44 result(null, thing);
46 testI64: function(thing, result) { argument
48 result(null, thing);
[all …]
Dtest-es6.js53 client.testVoid().then(function(result) { argument
54 assert.equal(result, undefined);
62 client.testString('').then(function(result) { argument
63 assert.equal(result, '');
66 client.testString(stringTest).then(function(result) { argument
67 assert.equal(result, stringTest);
75 client.testString(specialCharacters).then(function(result) { argument
76 assert.equal(result, specialCharacters);
84 client.testDouble(0).then(function(result) { argument
85 assert.equal(result, 0);
[all …]
Dtest-jq.js101 client.testI32(Math.pow(2, 30), function(result) { argument
102 assert.equal(result, Math.pow(2, 30));
106 const jqxhr = client.testI32(Math.pow(-2, 31), function(result) { argument
107 assert.equal(result, Math.pow(-2, 31));
111 jqxhr.success(function(result) { argument
112 assert.equal(result, Math.pow(-2, 31));
122 client.testI64(Math.pow(2, 52), function(result) { argument
123 assert.equal(result, Math.pow(2, 52));
128 client.testI64(Math.pow(-2, 52), function(result) { argument
129 assert.equal(result, Math.pow(-2, 52));
[all …]
/thrift-3.4.0/lib/ts/test/
Dtest_handler.js30 testVoid: function(result) { argument
32 result(null);
34 testString: function(thing, result) { argument
36 result(null, thing);
38 testByte: function(thing, result) { argument
40 result(null, thing);
42 testI32: function(thing, result) { argument
44 result(null, thing);
46 testI64: function(thing, result) { argument
48 result(null, thing);
[all …]
/thrift-3.4.0/lib/delphi/test/Performance/
DDataFactory.pas54 result := TCrazyNestingImpl.Create;
55 result.Binary_field := CreateBytesArray(count);
56 result.List_field := CreateListField(count);
57 result.Set_field := CreateSetField(count);
58 result.String_field := Format('data level %d', [count]);
64 result := TThriftHashSetImpl< IInsanity>.Create;
66 result.Add(CreateInsanity(count));
72 result := TInsanityImpl.Create;
73 result.UserMap := CreateUserMap(count);
74 result.Xtructs := CreateXtructs(count);
[all …]
/thrift-3.4.0/lib/cpp/src/thrift/protocol/
DTJSONProtocol.cpp102 TType result = T_STOP; // Sentinel value in getTypeIDForTypeName() local
106 result = T_DOUBLE; in getTypeIDForTypeName()
111 result = T_BYTE; in getTypeIDForTypeName()
114 result = T_I16; in getTypeIDForTypeName()
117 result = T_I32; in getTypeIDForTypeName()
120 result = T_I64; in getTypeIDForTypeName()
125 result = T_LIST; in getTypeIDForTypeName()
128 result = T_MAP; in getTypeIDForTypeName()
131 result = T_STRUCT; in getTypeIDForTypeName()
135 result = T_STRING; in getTypeIDForTypeName()
[all …]
/thrift-3.4.0/lib/php/lib/Protocol/
DTProtocol.php204 $result = $this->readStructBegin($name);
206 $result += $this->readFieldBegin($name, $ftype, $fid);
210 $result += $this->skip($ftype);
211 $result += $this->readFieldEnd();
213 $result += $this->readStructEnd();
215 return $result;
218 $result = $this->readMapBegin($keyType, $valType, $size);
220 $result += $this->skip($keyType);
221 $result += $this->skip($valType);
223 $result += $this->readMapEnd();
[all …]
/thrift-3.4.0/lib/netstd/Thrift/Protocol/Utilities/
DTJsonProtocolHelper.cs60 var result = TType.Stop; in GetTypeIdForTypeName()
66 result = TType.Double; in GetTypeIdForTypeName()
72 result = TType.Byte; in GetTypeIdForTypeName()
75 result = TType.I16; in GetTypeIdForTypeName()
78 result = TType.I32; in GetTypeIdForTypeName()
81 result = TType.I64; in GetTypeIdForTypeName()
86 result = TType.List; in GetTypeIdForTypeName()
89 result = TType.Map; in GetTypeIdForTypeName()
92 result = TType.Struct; in GetTypeIdForTypeName()
97 result = TType.String; in GetTypeIdForTypeName()
[all …]
/thrift-3.4.0/lib/perl/lib/Thrift/
DProtocol.pm335 my $result;
363 $result = $self->readStructBegin(\$ref);
366 $result += $self->readFieldBegin(\$ref, \$ftype, \$fid);
370 $result += $self->skip($ftype);
371 $result += $self->readFieldEnd();
373 $result += $self->readStructEnd();
374 return $result;
379 $result = $self->readMapBegin(\$keyType, \$valType, \$size);
381 $result += $self->skip($keyType);
382 $result += $self->skip($valType);
[all …]
/thrift-3.4.0/lib/delphi/src/
DThrift.Protocol.JSON.pas306 result := TJSONProtocolImpl.Create( trans);
312 TType.Bool_: result := NAME_BOOL;
313 TType.Byte_: result := NAME_BYTE;
314 TType.I16: result := NAME_I16;
315 TType.I32: result := NAME_I32;
316 TType.I64: result := NAME_I64;
317 TType.Double_: result := NAME_DOUBLE;
318 TType.String_: result := NAME_STRING;
319 TType.Struct: result := NAME_STRUCT;
320 TType.Map: result := NAME_MAP;
[all …]
DThrift.Exception.pas50 result := Self.GetMessageText;
65 result := Self.ToString;
66 if (result <> '') and (result[1] = '(')
67 then result := Copy(result,2,Length(result)-2);
DThrift.Utils.pas161 result := FOverlapped;
167 result := @FOverlapped;
173 result := FOverlapped.hEvent;
179 result := WaitForSingleObject( FOverlapped.hEvent, dwTimeout);
198 result := 4;
206 result := 3;
212 result := 2;
217 result := 0; // because invalid call
242 result := 1;
247 Inc( result);
[all …]
DThrift.Protocol.Compact.pas273 result := TCompactProtocolImpl.Create( trans);
517 ASSERT( SizeOf(db) = SizeOf(result));
518 Move( db, result, SizeOf(result));
524 ASSERT( SizeOf(i64) = SizeOf(result));
525 Move( i64, result, SizeOf(result));
627 then result := UInt64(n shl 1)
628 else result := UInt64(n shl 1) xor $FFFFFFFFFFFFFFFF;
638 then result := Cardinal(n shl 1)
639 else result := Cardinal(n shl 1) xor $FFFFFFFF;
681 Init( result, msgNm, TMessageType(type_), seqid);
[all …]
/thrift-3.4.0/test/dart/test_client/bin/
Dmain.dart86 int result = 0;
95 result = result | test.errorCode;
99 exit(result);
188 var result = await client.testString(input);
189 if (result != input) throw new TTestError(result, input);
194 var result = await client.testBool(input);
195 if (result != input) throw new TTestError(result, input);
200 var result = await client.testByte(input);
201 if (result != input) throw new TTestError(result, input);
206 var result = await client.testI32(input);
[all …]
/thrift-3.4.0/lib/netstd/Tests/Thrift.Tests/Protocols/
DTJsonProtocolTests.cs40 var result = new TJSONProtocolWrapper(httpClientTransport); in TJSONProtocol_Can_Create_Instance_Test()
42 Assert.IsNotNull(result); in TJSONProtocol_Can_Create_Instance_Test()
43 Assert.IsNotNull(result.WrappedContext); in TJSONProtocol_Can_Create_Instance_Test()
44 Assert.IsNotNull(result.WrappedReader); in TJSONProtocol_Can_Create_Instance_Test()
45 Assert.IsNotNull(result.Transport); in TJSONProtocol_Can_Create_Instance_Test()
46 Assert.IsTrue(result.WrappedRecursionDepth == 0); in TJSONProtocol_Can_Create_Instance_Test()
47 Assert.IsTrue(result.WrappedRecursionLimit == TConfiguration.DEFAULT_RECURSION_DEPTH); in TJSONProtocol_Can_Create_Instance_Test()
49 Assert.IsTrue(result.Transport.Equals(httpClientTransport)); in TJSONProtocol_Can_Create_Instance_Test()
50 …Assert.IsTrue(result.WrappedContext.GetType().Name.Equals("JSONBaseContext", StringComparison.Ordi… in TJSONProtocol_Can_Create_Instance_Test()
51 …Assert.IsTrue(result.WrappedReader.GetType().Name.Equals("LookaheadReader", StringComparison.Ordin… in TJSONProtocol_Can_Create_Instance_Test()
/thrift-3.4.0/lib/netstd/Tests/Thrift.IntegrationTests/Protocols/
DProtocolsOperationsTests.cs70 var result = _compareLogic.Compare(expected, actualMessage); in WriteReadMessage_Test()
71 Assert.IsTrue(result.AreEqual, result.DifferencesString); in WriteReadMessage_Test()
104 var result = _compareLogic.Compare(expected, actual); in WriteReadStruct_Test()
105 Assert.IsTrue(result.AreEqual, result.DifferencesString); in WriteReadStruct_Test()
139 var result = _compareLogic.Compare(expected, actual); in WriteReadField_Test()
140 Assert.IsTrue(result.AreEqual, result.DifferencesString); in WriteReadField_Test()
172 var result = _compareLogic.Compare(expected, actual); in WriteReadMap_Test()
173 Assert.IsTrue(result.AreEqual, result.DifferencesString); in WriteReadMap_Test()
206 var result = _compareLogic.Compare(expected, actual); in WriteReadList_Test()
207 Assert.IsTrue(result.AreEqual, result.DifferencesString); in WriteReadList_Test()
[all …]
/thrift-3.4.0/lib/d/src/thrift/internal/
Dctfe.d29 string result; variable
31 result ~= strings[0];
33 result ~= separator ~ s;
36 return result;
56 string result; variable
58 result ~= '-';
73 if (i == 1) result ~= '.';
76 result ~= to!string(first);
84 if (magnitude != 0) result ~= "e" ~ to!string(magnitude);
85 return result;
/thrift-3.4.0/lib/nodets/test/
Dtest_handler.ts160 testVoid(callback: (result: void) => void): Q.IPromise<void> {
165 callback: (err: any, result: { [k: number]: { [k: number]: number; }; }) => void):
181 …testInsanity(argument: ttypes.Insanity, callback?: (err: any, result: { [k: number]: any; }) => vo…
200 …t64, arg3: { [k: number]: string; }, arg4: ttypes.Numberz, arg5: number, result: Function): Q.IPro…
202 hello.then(hello => result(null, hello));
205 testException(arg: string, result: (err: any) => void): Q.IPromise<void> {
210 result(x);
212 result(new Thrift.TException(arg));
214 result(null);
218 …testMultiException(arg0: string, arg1: string, result: (err: any, res?: ttypes.Xtruct) => void): Q…
[all …]
/thrift-3.4.0/tutorial/nodejs/
DNodeServer.js28 ping: function(result) { argument
30 result(null);
33 add: function(n1, n2, result) { argument
35 result(null, n1 + n2);
38 calculate: function(logid, work, result) { argument
53 result(x);
61 result(x);
70 result(null, val);
73 getStruct: function(key, result) { argument
75 result(null, data[key]);
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/protocol/
DTMessage.java58 int result = 1; in hashCode() local
59 result = prime * result + ((name == null) ? 0 : name.hashCode()); in hashCode()
60 result = prime * result + seqid; in hashCode()
61 result = prime * result + type; in hashCode()
62 return result; in hashCode()
/thrift-3.4.0/lib/d/src/thrift/codegen/
Didlgen.d51 enum idlString = idlStringImpl!Roots.result;
72 enum result = ctfeJoin( variable
115 string result = "alias TypeTuple!(";
117 if (i > 0) result ~= ", ";
118 result ~= "mixin(`T." ~ e.type ~ "`)";
120 result ~= ") ExceptionTypes;";
121 return result;
257 string result = "service " ~ T.stringof;
259 result ~= " extends " ~ BaseService!T.stringof;
261 result ~= " {\n";
[all …]
/thrift-3.4.0/lib/cpp/test/
DOptionalRequiredTest.cpp70 const std::string result(apache::thrift::ThriftDebugString(o)); in BOOST_AUTO_TEST_CASE() local
72 BOOST_CHECK_MESSAGE(!expected_result.compare(result), in BOOST_AUTO_TEST_CASE()
73 "Expected:\n" << expected_result << "\nGotten:\n" << result); in BOOST_AUTO_TEST_CASE()
84 const std::string result(apache::thrift::ThriftDebugString(s)); in BOOST_AUTO_TEST_CASE() local
86 BOOST_CHECK_MESSAGE(!expected_result.compare(result), in BOOST_AUTO_TEST_CASE()
87 "Expected:\n" << expected_result << "\nGotten:\n" << result); in BOOST_AUTO_TEST_CASE()
99 const std::string result(apache::thrift::ThriftDebugString(s)); in BOOST_AUTO_TEST_CASE() local
101 BOOST_CHECK_MESSAGE(!expected_result.compare(result), in BOOST_AUTO_TEST_CASE()
102 "Expected:\n" << expected_result << "\nGotten:\n" << result); in BOOST_AUTO_TEST_CASE()
116 const std::string result(apache::thrift::ThriftDebugString(s)); in BOOST_AUTO_TEST_CASE() local
[all …]
/thrift-3.4.0/lib/nodejs/test/
Dtest_handler.js43 return function(thing, result) { argument
45 result(null, thing);
79 function testVoidAsync(result) { argument
80 result(testVoid());
131 function testMultiAsync(arg0, arg1, arg2, arg3, arg4, arg5, result) { argument
133 result(null, hello);
150 function testExceptionAsync(arg, result) { argument
156 result(x);
158 result(new TException(arg));
160 result(null);
[all …]

1234567891011