Add tests for kiwix::fileExists and kiwix::fileReadable

This commit is contained in:
Nikhil Tanwar
2022-01-06 18:54:58 +05:30
parent 854058f842
commit 3dbcbe542b
3 changed files with 35 additions and 5 deletions

View File

@ -188,9 +188,9 @@ std::string getFileContent(const std::string& path);
bool fileExists(const std::string& path);
/** checks if file is readable.
*
*
* This function returns boolean stating if file is readable.
*
*
* @param path The absolute path provided in string format.
* @return Boolean representing if file is readale or not.
*/
@ -206,7 +206,7 @@ bool fileReadable(const std::string& path);
std::string getMimeTypeForFile(const std::string& filename);
/** Provides all available network interfaces
*
*
* This function provides the available IPv4 network interfaces
*/
std::map<std::string, std::string> getNetworkInterfaces();