2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-01-19 16:32:12 +00:00

20 Commits

Author SHA1 Message Date
Alexander Grund
a0327e0b74 Update license headers
Use the more concise format omitting the reference to the license file
and refer to the URL only.
2022-07-13 12:35:54 +02:00
Alexander Grund
668165bad2 Catch any exception in benchmark
Coverity detected a potential `bad_cast` due to facets in iostreams and
`bad_array_new_length` during `vector` construction.
Catch those too with the more general `std::exception` although they are
very likely false positives / can never occur.
2022-06-14 12:37:53 +02:00
Alexander Grund
9acb785499 Reenable fstream benchmark code
Was accidentally left commented out
2022-05-23 15:52:44 +02:00
Alexander Grund
71f749c8ef Use TEST_EQ where possible
Better output on failing tests
2021-11-18 13:26:39 +01:00
Alexander Grund
eb522200e4 Refactor tests
Split into smaller files and functions
More strategic tests
2021-04-10 20:29:38 +02:00
Alexander Grund
f63a6bb0c6 Update benchmark to check file read speed in text and binary mode 2021-03-21 11:44:31 +01:00
Alexander Grund
ff3a8e6c6c Consistently use using instead of typedef 2020-09-28 15:11:15 +02:00
Alexander Grund
4d1275eb80 Update formatting using clang-format-10 2020-09-28 15:11:15 +02:00
Alexander Grund
20385d4a3c Fix name of license file 2020-05-22 12:20:11 +02:00
Alexander Grund
fc5da4b239 Move to C++11 as the minimum dropping boost dependencies 2020-05-22 12:20:03 +02:00
Alexander Grund
6afb3f15ab Deduplicate tests and improve coverage
Every test had the same pattern of a main catching exceptions and
returning 0 or 1 based on that. Factor that into test.hpp.
As most code in test.hpp is only executed on failure and those should
not occur this file is excluded from coverage.

Finally test.hpp is included last and the header to test first
consistently to check for self-sufficient includes.
2020-04-03 16:28:28 +02:00
Alexander Grund
3e0a7e33b1 Fix minor issues and improve stackstring tests
Make some functions protected to derive a test class from stackstring
which can be used to detect wether a stack or heap value is used
Fix or silence issues from static analyser findings
Double-check and handle surrogates in iostream
2020-03-14 17:46:49 +01:00
Alexander Grund
5379ff55b4 Handle/Silence issues from coverity 2020-03-05 16:07:37 +01:00
Alexander Grund
7474cb8b4a Avoid CRT_SECURE_WARNINGS on clang-win 2020-02-24 18:00:48 +01:00
Alexander Grund
2dbe4552c3 Don't use map.at for C++98 compatibility 2020-02-24 13:31:57 +01:00
Alexander Grund
3ff3002a22 Improve performance test
Run multiple times and take mean speed
Present results in a table for easier comparison
Add some tricks to avoid optimization reordering stuff that breaks the benchmark
2020-02-06 16:57:09 +01:00
Alexander Grund
8e08054b42 Reduce max line length to 120 2020-02-04 17:46:48 +01:00
Alexander Grund
7854435d8e Switch pointer alignment to left
Consistency with rest of boost
2020-01-07 21:27:26 +01:00
Alexander Grund
bb2487351f Use west-const
Almost all of boost does, so be nice stay consistent
2020-01-07 21:26:12 +01:00
Alexander Grund
dd2d60eda3 Add benchmark for fstream 2020-01-02 18:47:38 +01:00