Martchus
07ae1588fa
Add writeFile()
...
Due to the required `file.close()` at then end this is easy
to get wrong. So let's add a helper.
2019-12-15 19:00:15 +01:00
Martchus
4e3393ee72
Apply clang-format
2019-10-30 23:02:30 +01:00
Martchus
a383d7dac5
Use CPPUNIT_ASSERT_EQUAL in IoTests::testBinaryReader()
2019-10-30 20:34:34 +01:00
Martchus
9a95db3773
Add BinaryReader::readRemainingBytes()
2019-10-30 20:29:26 +01:00
Martchus
a841d764d5
Use override in test fixtures
2019-10-13 18:27:41 +02:00
Martchus
b693c72eb1
Fix old namespaces being mentioned in the documentation
2019-09-04 18:45:28 +02:00
Martchus
5bed21c9d2
Improve NativeFileStream
...
* Expose native file descriptor/handle to be able to
use native APIs like POSIX sendfile()
* Fix using Boost.Iostreams under Windows
* Make it compile
* Workaround issue with append flag
2019-08-13 00:28:25 +02:00
Martchus
b48b2f5c06
Have everything in one top-level namespace
2019-06-10 21:56:46 +02:00
Martchus
c701fc25ee
Remove directoryEntries()
2019-06-05 23:50:38 +02:00
Martchus
f95e16bc80
Remove readMultibyteTerminatedString*() functions
2019-06-04 19:10:52 +02:00
Martchus
f16703ffc0
Remove workingCopyPathMode()
2019-05-11 19:02:32 +02:00
Martchus
c4128799bc
Fix test for libstd++/Windows NativeFileStream configuration
2019-05-04 15:49:41 +02:00
Martchus
9a50d2b8df
Remove types
2019-04-13 20:33:39 +02:00
Marius Kittler
132f936c57
Remove workaround for GCC Bug 66145
2019-04-13 20:33:39 +02:00
Marius Kittler
07a74d5fa8
Rename openFromFileDescriptor() to open()
2019-04-13 20:33:39 +02:00
Martchus
5356d793fc
Make all tests pass under Windows
...
* Workaround some issues
* Disable some tests (better than not running tests
at all)
2018-10-03 22:37:55 +02:00
Martchus
ac6b7ae68e
Fix some of the IO tests to pass under Windows
...
Still, the workaround for catching std::ios_base::failure
doesn't seem to work.
2018-09-30 14:40:16 +02:00
Martchus
749eea2ab6
Support NativeFileStream via Boost.Iostreams
...
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00
Martchus
61f7ce90e1
Improve coding style (after running clang-tidy)
2018-08-12 22:09:22 +02:00
Martchus
e3310792d3
Improve tests for IO utilities
2018-01-29 16:26:02 +01:00
Martchus
e52fd5a4af
Apply tidy after updating to clang-format 5.0.0
...
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:45:23 +02:00
Martchus
f2b8ee4184
Test ownership also for BinaryWriter class
2017-07-28 20:35:05 +02:00
Martchus
1d4a4bd2be
binary reader/writer: Increase limit of length-prefixed strings
...
So strings with a size up to 0xFFFFFFFFFFFFFF byte can be handled.
2017-07-28 20:34:50 +02:00
Martchus
454347c31f
Improve IO tests
2017-06-25 16:00:11 +02:00
Martchus
ace077f9aa
Fix INI test
2017-06-09 12:15:24 +02:00
Martchus
db46948f2f
Apply clang-format
2017-05-04 22:44:15 +02:00
Martchus
c4d73b0d7d
Use C++14 string literal
2017-02-06 18:32:27 +01:00
Martchus
a43e9b2baf
Fix BitReader test
2016-08-30 19:59:24 +02:00
Martchus
cb4246e202
Add methods to get dir path and entries
2016-07-02 02:01:26 +02:00
Martchus
980794066b
Provide workaround for GCC Bug 66145
2016-06-14 22:53:19 +02:00
Martchus
d28d477ffe
Complete generation of API doc
...
- Use README.md for main page
- Add install target for API doc
- Improve some doc comments
2016-06-10 22:59:22 +02:00
Martchus
38a9a1e13e
Ensure exceptions are thrown in IO tests
2016-06-08 00:15:01 +02:00
Martchus
0054a74302
minor adjustments
2016-03-03 19:07:46 +01:00
Martchus
a7941b92e2
added BitReader::readUnsignedExpGolombCodedBits() and
...
BitReader::readSignedExpGolombCodedBits()
2016-02-16 17:25:03 +01:00
Martchus
af5b879506
utilize creation of working copies for tests
2016-02-09 02:21:42 +01:00
Martchus
9abe04ce06
make test code public to simplify creation of tests in other projects
2016-02-06 16:55:28 +01:00
Martchus
93582b4ac0
added more tests, fixed some bugs
2016-01-27 02:25:28 +01:00
Martchus
503e4cf3c7
added test for BitReader
2016-01-27 01:14:09 +01:00
Martchus
80a4ce1790
added more test cases
2016-01-27 01:01:43 +01:00
Martchus
e4910171e8
added check target and first tests
2016-01-26 18:52:41 +01:00