mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Tests: Modularize unit testing
Split unit tests into separate files under src/unittest/ Give better unittest diagnostics Clean up some code
This commit is contained in:
parent
45a77c8bf1
commit
7220ca906d
25 changed files with 3402 additions and 2502 deletions
|
@ -103,6 +103,10 @@ std::string RemoveLastPathComponent(const std::string &path,
|
|||
// this does not resolve symlinks and check for existence of directories.
|
||||
std::string RemoveRelativePathComponents(std::string path);
|
||||
|
||||
// Return the filename from a path or the entire path if no directory delimiter
|
||||
// is found.
|
||||
const char *GetFilenameFromPath(const char *path);
|
||||
|
||||
bool safeWriteToFile(const std::string &path, const std::string &content);
|
||||
|
||||
}//fs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue