miloyip
aa61b08d11
Fix warnings for misctest
2015-04-18 21:31:56 +08:00
Milo Yip
0e8bbe5e3e
Standardize behavior of CrtAllocator::Malloc()
2015-04-17 13:01:14 +08:00
Milo Yip
4cd14b7c0e
Merge pull request #305 from pah/fix/strict-memcpy
...
Avoid calling memcpy with NULL pointers
2015-04-17 12:28:37 +08:00
Philipp A. Hartmann
0c5c1538dc
Avoid calling memcpy with NULL pointers
...
According to the C/C++ standards, calling `memcpy(NULL, NULL, 0)` is
undefined behaviour. Recent GCC versions may rely on this by optimizing
NULL pointer checks more aggressively, see [1].
This patch tries to avoid calling std::memcpy with zero elements.
As a side effect, explicitly return NULL when requesting an empty block
from MemoryPoolAllocator::Malloc.
This may be related to #301 .
[1] https://gcc.gnu.org/gcc-4.9/porting_to.html
2015-04-16 21:05:08 +02:00
miloyip
30ace6fa95
Fix mistake in perftest
2015-04-16 10:55:42 +08:00
miloyip
556d154bed
Search sample data in more folders for perftest
2015-04-16 10:34:45 +08:00
miloyip
22021d6622
Converts tabs to spaces
2015-04-16 10:15:23 +08:00
miloyip
a7763cbeca
Fix allocator test
2015-04-16 09:42:22 +08:00
miloyip
67a3ee39b5
Fix coveralls
2015-04-16 00:29:28 +08:00
Milo Yip
b1fd2f18e1
Update readme.zh-cn.md
...
Add build status
2015-04-16 00:16:34 +08:00
Milo Yip
e857b082fb
Update readme.md
...
Add coverall badges
2015-04-16 00:11:41 +08:00
Milo Yip
75ee552f49
Merge pull request #304 from miloyip/issue298_coverage
...
100% line of code coverage
2015-04-15 23:58:59 +08:00
miloyip
0edf27fa0c
Only do coverage on gcc/debug
2015-04-15 22:55:35 +08:00
Milo Yip
0571a211bd
Cover SkipWhiteSpace for InsituStringStream
2015-04-15 22:36:00 +08:00
Milo Yip
8f2add7527
Not enforce force inline for debug configuration
2015-04-15 22:23:00 +08:00
Milo Yip
4d3c64acee
Improves SkipWhitespace test
2015-04-15 21:07:30 +08:00
Milo Yip
a81585b5e2
Further improve SkipWhitespace coverage
2015-04-15 20:51:36 +08:00
Milo Yip
998e76fecc
Improves SkipWhitespace coverage
2015-04-15 20:38:46 +08:00
miloyip
ee505261c1
Try to use another namespace for SIMD version
2015-04-15 18:34:18 +08:00
miloyip
a32d8b7650
Add SIMD SkipWhitespace() unit test which don't run in Valgrind
2015-04-15 18:18:57 +08:00
Milo Yip
fa32ec8991
Merge pull request #302 from thebusytypist/issue298_coverage
...
Improve code coverage for iterative parsing
2015-04-15 16:32:22 +08:00
thebusytypist
6ef29ff431
Fix warning about unused argument.
2015-04-15 16:09:29 +08:00
thebusytypist
0d28bb13c7
Add a missing error handling check(a single number as JSON root).
2015-04-15 15:46:31 +08:00
thebusytypist
5ae48a0380
Assert on impossible state transition in Transit(); Put the last case and all non-enumerated cases(also supply assertion for them) in for code coverage.
2015-04-15 15:21:42 +08:00
miloyip
3f562e118f
Fix "SSE 4.1 -> SSE 4.2" typo and add some comments about SIMD in internals and FAQ
2015-04-15 14:57:29 +08:00
thebusytypist
399333226b
Use assertion for impossible case(The Predict() can ensure the token is ColonToken, otherwise it would be marked as Error state. So there is no need to check ColonToken again).
2015-04-15 14:54:44 +08:00
thebusytypist
8576747373
Add unittest for state transition to IterativeParsingMemberKeyState.
2015-04-15 14:51:48 +08:00
thebusytypist
7cb031cc03
Add unittests for parsing root JSON value other than array and object.
2015-04-15 14:45:07 +08:00
miloyip
631302e68e
Reduce random test iterations to speedup travis
2015-04-15 14:41:33 +08:00
miloyip
c69ff41fc2
Add tests for parsing number with exhaustive exponents and random signifcant
2015-04-15 14:23:00 +08:00
miloyip
76d67b7eae
Improves coverage of Value::Accept()
2015-04-15 12:16:16 +08:00
miloyip
2689cc4974
Remove more unused code paths in double conversions
2015-04-15 11:52:24 +08:00
miloyip
402d75a801
Fix gcc warning
2015-04-15 11:07:13 +08:00
miloyip
37d820a13e
Remove unused code paths in double conversions
2015-04-15 10:58:49 +08:00
miloyip
5b89f331c5
Add more test numbers for writer
2015-04-15 00:18:22 +08:00
miloyip
5f5758bc22
Try coverage on gcc/release also
2015-04-14 23:26:00 +08:00
Milo Yip
f8909e875b
Improve coverage of encoded streams
2015-04-14 21:50:13 +08:00
Milo Yip
afe2fbdc3f
Fix the warnings again
2015-04-14 21:30:57 +08:00
Milo Yip
84e5741204
Fix gcc warning
2015-04-14 21:23:44 +08:00
Milo Yip
872aba660c
Improve coverage of encoded streams
2015-04-14 21:08:33 +08:00
miloyip
4be4857a19
Remove ununused BigInteger::FullAdd()
2015-04-14 14:58:48 +08:00
miloyip
3621235cd0
Improve dtoa coverage
2015-04-14 14:52:42 +08:00
miloyip
4824f12efb
Fixed a bug in trimming long number sequence
2015-04-14 13:59:05 +08:00
miloyip
4cc62876ae
Add some parsing number tests
2015-04-14 13:22:39 +08:00
miloyip
3a92374011
Try turning on slow test on number parsing
2015-04-14 12:01:41 +08:00
miloyip
5dc52afd1e
Ignore files for coverage
2015-04-14 11:40:09 +08:00
miloyip
81c539e739
Merge remote-tracking branch 'origin/master' into issue298_coverage
2015-04-14 11:29:58 +08:00
Milo Yip
94c0082e38
Merge pull request #300 from miloyip/RemoveFileStream
...
Remove deprecated FileStream
2015-04-14 11:29:34 +08:00
miloyip
9dcc1f44f5
Remove deprecated test
2015-04-14 11:09:45 +08:00
miloyip
67be9ed2cb
Remove depreciated FileStream
2015-04-14 11:08:47 +08:00