1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-03-02 03:40:24 +00:00

added unit tests

This commit is contained in:
Falk Werner
2022-11-12 12:29:30 +01:00
parent 3b6e19653c
commit 6c96e8c6f8
6 changed files with 93 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
#include <iostream>
#include "webfuse/webfuse.hpp"
int main(int argc, char* argv[])
{
return EXIT_SUCCESS;
webfuse::app app(argc, argv);
return app.run();
}

27
src/webfuse/webfuse.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include "webfuse/webfuse.hpp"
namespace webfuse
{
class app::detail
{
int dummy;
};
app::app(int argc, char * argv[])
: d(new detail)
{
}
app::~app()
{
delete d;
}
int app::run()
{
return 0;
}
}

24
src/webfuse/webfuse.hpp Normal file
View File

@@ -0,0 +1,24 @@
#ifndef WEBFUSE_HPP
#define WEBFUSE_HPP
namespace webfuse
{
class app
{
app(app const &) = delete;
app& operator=(app const &) = delete;
app(app &&) = delete;
app& operator=(app &&) = delete;
public:
app(int argc, char * argv[]);
~app();
int run();
private:
class detail;
detail * d;
};
}
#endif