Commit graph

220 commits

Author SHA1 Message Date
Abit
2f776301cd
Merge pull request #169 from bitshares/for-core-3-3
Merge 3.3.x branch to master branch
2019-09-23 17:02:18 +02:00
Peter Conrad
253c1d56b9 Added test for zero-initialized arrays 2019-09-20 09:27:57 +02:00
Peter Conrad
8c9f7151e1 Moved stuff into fc::test namespace 2019-09-16 12:30:32 +02:00
Nathan Hourt
292584ca59 Add static_variant::operator==
For real this time :)
2019-08-31 12:48:52 -05:00
Nathan Hourt
c69ea32613 Improve reflection system and static_variant
Previously, fc reflection generated visitor infrastructure capable of
visiting each field of a struct; however, this is only useful for run-
time operations on structures. No compile-time information was preserved
about the fields of a struct, making compile-time introspection of types
impossible.

Now FC reflection generates rich compile-time information about the
members of structs, including types, names, and structure, allowing
code to be written to explore types in detail at compile-time and fetch
arbitrary fields at runtime without needing to iterate over the unwanted
fields.

To make this a reality, a new `typelist` type was added to store this
compile-time information. This type is also useful within the context of
`static_variant`, as SV previously used implementation detail types in a
private namespace to provide this functionality. Now `static_variant`
uses the reusable functionality of `typelist` to operate, dramatically
reducing the amount of code dedicated to `static_variant` and also
making `static_variant` types more flexible to work with since their
infrastructure is now based on the `typelist` public interface.
2019-08-30 14:21:36 -05:00
Nathan Hourt
45cb433d47 Fixes from code review 2019-08-30 11:52:05 -05:00
Nathan Hourt
9f7f1b4790 Replace improper static_variant operator overloads with comparators 2019-08-28 15:51:14 -05:00
abitmore
7b6c359a32 Update test case for optional API arguments
Reproduces https://github.com/bitshares/bitshares-core/issues/1898
2019-08-13 13:09:31 -04:00
Peter Conrad
cabab23e2c Replaced more array::begin() with data() 2019-08-02 17:31:07 +02:00
Peter Conrad
632a90709e Replace fc::array with std::array 2019-06-06 14:41:47 +02:00
Peter Conrad
022c40dde2 Removed unused real128 2019-06-06 14:39:14 +02:00
Peter Conrad
7cf371736b Intermediate 2019-06-06 14:39:14 +02:00
Peter Conrad
aa8870e793 Fixed JSONRPC error handling 2019-05-24 18:11:19 +02:00
Nathan Hourt
6b7874e49a Rebase fixes 2019-05-13 17:26:32 -05:00
Nathan Hourt
afb96a0e7e Ref #126: Cleanup/revert unwanted changes 2019-05-13 17:25:49 -05:00
Nathan Hourt
0a50ac23e0 Remove websocket_server::synchronous_close
It doesn't work as expected, so get rid of it.
2019-05-13 17:25:08 -05:00
Nathan Hourt
b8a03d3a51 Fix failing test 2019-05-13 17:25:08 -05:00
Nathan Hourt
bb01f3e925 Use random port for API tests
Add missing functionality to websocket_client and websocket_server to
make API tests more reliable and to make it possible to use a random
port for the tests.
2019-05-13 17:25:08 -05:00
Nathan Hourt
94a18cfccc Roll API tests into all_tests 2019-05-13 17:24:11 -05:00
Nathan Hourt
a89e30187f API Tests
General cleanup of a lot of nonsense
Add tests of optional parameters
2019-05-13 17:24:10 -05:00
Abit
67e5a06035
Merge pull request #119 from bitshares/shared-ws-client-ptr
Use shared_ptr to WS connection in API connection
2019-05-10 15:24:15 +02:00
Peter Conrad
9a0d92820d Fixes for endianness 2019-04-23 16:45:44 +02:00
Peter Conrad
1daac3b4b5 Removed unused endian-dependent code 2019-04-23 16:44:44 +02:00
Peter Conrad
7f93f265c7
Merge pull request #120 from pmconrad/1584_simplification
1584 simplifications
2019-04-23 15:54:09 +02:00
John M. Jones
5f8f799185
Merge pull request #111 from bitshares/jmj_1593_variant
Equality check does not work on Windows
2019-04-10 05:33:33 -05:00
Peter Conrad
637226a2e4 Remove unused blowfish 2019-04-04 17:59:51 +02:00
Peter Conrad
d2b7354c24 Remove unused base36 2019-04-04 17:59:51 +02:00
Peter Conrad
579914c84d Removed unused stuff 2019-04-04 17:59:51 +02:00
abitmore
03cc93d0e4 Update WS API test cases due to param type change 2019-04-03 12:06:02 -04:00
Nathan Hourt
2d0122f1ed More tweaks vis-a-vis warnings
Move crc_c fake usage out of strange main() function in a library
Convert manual string formatting to FC string formatting
2019-03-25 09:26:35 -05:00
Nathan Hourt
04c393a53a Add self-assignment test, sans the compiler warning 2019-03-25 09:18:21 -05:00
Nathan Hourt
84c16aeebb Fix some warnings 2019-03-24 10:44:03 -05:00
John Jones
d22f9ed634 whitespace fix 2019-03-05 13:04:44 -05:00
John Jones
d9634f8755 assist MSVC with comparison 2019-03-05 13:03:09 -05:00
John Jones
d5b2be2782 Equality check does not work on Windows 2019-03-04 17:02:14 -05:00
John M. Jones
2bf93ec086
Merge pull request #102 from bitshares/jmj_macwarn
Fix some macOS warnings
2019-01-17 12:28:56 -05:00
Peter Conrad
b2e738af09
Merge pull request #100 from bitshares/fix_limits
Fix limits
2019-01-08 17:33:28 +01:00
jmjatlanta
f7e5f7396b unneccesary capture 2019-01-07 11:18:14 -05:00
John Jones
51f27f1fcd Fix stacktrace test 2018-12-28 14:49:17 -05:00
Peter Conrad
90f8ad5722 Ported test case from STEEM 2018-12-28 20:36:34 +01:00
John Jones
3f5205ad6b Fix warnings in tests 2018-12-28 14:19:19 -05:00
John M. Jones
0468884ea6
Merge pull request #92 from bitshares/mac_stacktrace
boost stacktrace does not play well with mac
2018-11-21 06:35:44 -05:00
John M. Jones
e9886b0628
Merge pull request #95 from bitshares/jmj_readsome
mac fc::io::readsome fix
2018-11-21 06:31:53 -05:00
Peter Conrad
1aecf3ccc8
Merge pull request #85 from crypto-ape/static-variant-memory-optimizations
Memory optimization of static_variant
2018-11-17 10:43:03 +01:00
Peter Conrad
460e7cccc8
Merge pull request #78 from bitshares/multithreading_improvements
Multithreading improvements
2018-11-17 10:41:49 +01:00
John Jones
f4dec89dc3 mac fc::io::readsome fix 2018-11-15 03:53:55 -08:00
John Jones
fd345e5bc2 fix #if for boost versions > 2 2018-11-13 16:06:59 -05:00
Peter Conrad
5b99b41a44 Added missing include 2018-11-10 21:29:32 +01:00
crypto-ape
f8b86fc757 added testcase types_edge_cases_test for static_variant 2018-10-31 10:59:51 +01:00
Abit
8b6a2dd450
Merge pull request #84 from bitshares/jmj_1383
Fix Compiler Warnings
2018-10-25 10:41:45 +02:00