Patrick Pelissier
2f26d4ffd3
Add more tests / improve coverage.
2018-06-02 21:26:54 +02:00
Patrick Pelissier
d306bae035
Generate cleaner coverage.
2018-06-02 21:26:32 +02:00
Patrick Pelissier
928fc077b8
Remove a warning.
2018-05-30 23:17:37 +02:00
Patrick Pelissier
d40d23a50e
Add test for _splice_at for Intrusive list.
2018-05-30 20:21:37 +02:00
Patrick Pelissier
a3fad5966a
Update test to reflect the new specifications.
2018-05-28 23:46:10 +02:00
Patrick Pelissier
e5f5563249
Add method _splice_at for dual_push_list
2018-05-28 21:58:45 +02:00
Patrick Pelissier
2a6893efb4
Add method _splice_at for singly list.
2018-05-28 21:22:14 +02:00
Patrick Pelissier
7815feddba
Proper expand algorithms for intrusive list.
2018-05-24 22:58:16 +02:00
Patrick Pelissier
40e9550b29
Generate algo for intrusive list.
2018-05-23 21:10:58 +02:00
Patrick Pelissier
64d0202f95
ALGO macros accept now a type instead of an oplist
...
if a global oplist has been registered for the type.
Add macro ALGO_LET_INIT_VA which declares, initializes, sets and clears
a container.
2018-05-22 20:39:51 +02:00
Patrick Pelissier
494ee2c099
Add proper check of allocation for testing object.
2018-05-22 05:46:04 +02:00
Patrick Pelissier
7ccede36b1
Test with deque too.
2018-05-19 12:52:40 +02:00
Patrick Pelissier
d0fe7f3e25
Add method _push_move & _pop_move.
...
Add assertion on _pop_back to check that the container is not empty.
2018-05-19 11:21:57 +02:00
Patrick Pelissier
86083e3a92
Add methods push_move & pop_move.
...
Rewrite _pop_back to be a little bit faster for complex structure as it used
DO_MOVE instead of plain _set.
2018-05-19 11:21:18 +02:00
Patrick Pelissier
1a3cd2f626
Add experimental support for cmp function with user define order.
2018-05-16 22:36:26 +02:00
Patrick Pelissier
2fbea43a5c
Add M_MAP3 macro.
2018-05-16 20:00:41 +02:00
Patrick Pelissier
2af35673bb
Update comments about TODO.
2018-05-15 21:02:34 +02:00
Patrick Pelissier
fc4dba4569
Add DSC versions of the _sort function to reverve the sort (DSC=descending).
2018-05-14 23:08:46 +02:00
Patrick Pelissier
47a2553356
Add new test on B*TREE as set.
2018-05-11 22:41:56 +02:00
Patrick Pelissier
67bf199254
Fix comparison of object.
...
memcmp compares object as little endian, which is not what we want.
2018-05-11 22:41:22 +02:00
Patrick Pelissier
0557527bfe
Update format of serialisation for B+TREE:
...
as the tree is ordered, a '[]' has to be used.
2018-05-11 17:32:32 +02:00
Patrick Pelissier
680a850618
Add test of _in_str, _out_str, _get_str and _parse_str
2018-05-09 21:48:42 +02:00
Patrick Pelissier
e9f603fa30
Rename internal calls to my_mpz* to testobj*
2018-05-08 10:40:29 +02:00
Patrick Pelissier
1a064e033b
Rename mympz.h --> test-obj.h
...
as it is used only for testing purpose.
2018-05-08 10:29:51 +02:00
Patrick Pelissier
ebcfcf9bfa
Add I/O test for B+TREE
2018-05-07 23:08:47 +02:00
Patrick Pelissier
cf063b75ff
Update oplist to reflect all methods.
2018-05-07 23:08:12 +02:00
Patrick Pelissier
37191a53c3
Fix unclear variable.
2018-05-04 00:14:52 +02:00
Patrick Pelissier
42d420db6a
Add generation for string.
2018-05-03 22:12:32 +02:00
Patrick Pelissier
e855f27c8c
Add method _parse_str for RBTREE.
...
NOTE: A refactorisation seems needed as all the in_str / parse_str
share a lot of the same algorithms. Maybe move them into algo?
2018-05-03 17:59:34 +02:00
Patrick Pelissier
188b329eae
Add method _parse_str for dict.
2018-05-03 17:43:40 +02:00
Patrick Pelissier
73f8baf464
Add method _parse_str for array.
2018-05-03 17:29:10 +02:00
Patrick Pelissier
4efa8c1ef9
Add function _parse_str for list.
2018-05-03 17:14:10 +02:00
Patrick Pelissier
9f178208f2
Fix bug in new function.
2018-05-03 17:13:47 +02:00
Patrick Pelissier
139e003b0b
Add method _parse_str for variant.
2018-05-03 17:01:03 +02:00
Patrick Pelissier
1bf80cf315
Add function _parse_str
2018-05-03 13:37:19 +02:00
Patrick Pelissier
bcf182f515
Add _parse_str method
2018-05-03 13:30:39 +02:00
Patrick Pelissier
6b24842704
Add _parse_str interface.
...
Rewrite _set_str to use the _parse_str
2018-05-03 12:59:58 +02:00
Patrick Pelissier
2ad8ae3451
Rewrite parse_str interface to be more like strol
2018-05-03 12:59:10 +02:00
Patrick Pelissier
47a49263ae
Add function _parse_str for string.
2018-05-02 19:36:51 +02:00
Patrick Pelissier
ac5b689950
Add method _set2 for tuple.
2018-04-30 20:00:26 +02:00
Patrick Pelissier
34d0f8ec81
Add missing function for variant:
...
variant_init_element
variant_init_set_element
2018-04-30 10:24:37 +02:00
Patrick Pelissier
a12e3534c6
Rewrite I/O functions so that they handle properly
...
non printable characters.
2018-04-21 10:26:05 +02:00
Patrick Pelissier
da07a5b613
string_strim allows optionnal second argument which list the characters to strim.
2018-04-20 20:46:44 +02:00
Patrick Pelissier
e2fc9c3699
Update
2018-04-19 20:21:54 +02:00
Patrick Pelissier
472eaff6f0
Add gene queue
2018-04-19 20:20:18 +02:00
Patrick Pelissier
805b016aee
Reformat test and reduce pressure on thread creation for some tests
...
(Some systems didn't handle so much thread creation).
2018-04-17 23:01:05 +02:00
Patrick Pelissier
3f5406f1d4
API breakage:
...
worker_sync takes an extra parameter (worker_t) to perform a
wait-on-event instead of a busy waiting, reducing consummer ressources.
worker_init takes an int instead of an unsigned int for the number of workers.
It allows additional extra value -1 to initialize the number of workers to
twice the number of CPU, allowing to overload the CPU with loads and keep
them fully working in some scenario.
2018-04-16 23:57:28 +02:00
Patrick Pelissier
6bb94db22f
Add function dict_splice
2018-04-15 21:02:14 +02:00
Patrick Pelissier
12b15e0037
Add function array_splice just like function list_splice
...
as it can be done faster at low level.
2018-04-15 11:41:32 +02:00
Patrick Pelissier
2c9169308b
Add code generation for OA dict
2018-04-15 10:53:55 +02:00