memgraph/tests
Teon Banek 98cbd2b500 Cleanup utils::File API
Summary:
Close the file descriptor in File destructor. This will prevent
accidental crashes during unexpected destructor calls. For example, if
an exception is thrown before the file is closed. File now takes
ownership of the descriptor. These changes now honor RAII idiom, which
should handle most of the peculiarities of C++.

Use optional value for TryOpenFile function, instead of returning a File
without a descriptor. It makes the failure state more semantically clear
to the API user.

Merge utils/filesystem with utils/file

The files aren't that big, and the naming is a bit confusing because
functions aren't really grouped for file and filesystem distinction.

Reviewers: mferencevic, mtomic

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1111
2018-01-16 15:38:12 +01:00
..
benchmark Inline test data in the benchmark tests itself 2018-01-15 16:12:30 +01:00
concurrent Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
distributed Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
drivers Add C# driver test examples 2017-11-10 15:46:56 +01:00
macro_benchmark Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
manual Implement simple log file storage for raft 2018-01-15 18:07:45 +01:00
property_based Refactor GraphDb 2018-01-12 16:47:24 +01:00
public_benchmark Add initial version of Apollo config files 2018-01-10 14:46:10 +01:00
qa Add initial version of Apollo config files 2018-01-10 14:46:10 +01:00
stress Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
unit Cleanup utils::File API 2018-01-16 15:38:12 +01:00
apollo_runs.py Inline test data in the benchmark tests itself 2018-01-15 16:12:30 +01:00
client-stress.sh Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
CMakeLists.txt Inline test data in the benchmark tests itself 2018-01-15 16:12:30 +01:00