THRIFT-2886 Integrate binary type in standard Thrift cross test
Client: C_glib, C++, D, Erlang, Go, Haskell, Lua, Java/Me, JavaScript, Node, Ocaml, Perl, PHP, Python, Ruby
Patch: Jens Geyer
This closes #341
Minimal server-side implementations and TODO stubs for various languages to let "make check" succeeed.
Not contained in this patch and still TODO:
- client side implementations, i.e. calls to testBinary() and appropriate tests
- server side hex printout missing for some languages
diff --git a/lib/js/test/test-async.js b/lib/js/test/test-async.js
index 4935fea..336e2bc 100644
--- a/lib/js/test/test-async.js
+++ b/lib/js/test/test-async.js
@@ -97,6 +97,7 @@
QUnit.start();
});
});
+ // TODO: add testBinary()
asyncTest("Byte", function() {
expect( 2 );
QUnit.stop();
diff --git a/lib/js/test/test_handler.js b/lib/js/test/test_handler.js
index 17d22cf..50ac7ac 100644
--- a/lib/js/test/test_handler.js
+++ b/lib/js/test/test_handler.js
@@ -48,6 +48,10 @@
console.log('testDouble(' + thing + ')');
result(null, thing);
},
+ testBinary: function(thing, result) {
+ console.log('testBinary(\'' + thing + '\')');
+ result(null, thing);
+ },
testStruct: function(thing, result) {
console.log('testStruct(');
console.log(thing);