mirror of
https://github.com/falk-werner/webfused
synced 2026-03-02 04:09:19 +00:00
added basic unit test
This commit is contained in:
13
test/test_config.cc
Normal file
13
test/test_config.cc
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <libconfig.h>
|
||||
|
||||
TEST(config, is_loadable)
|
||||
{
|
||||
config_t config;
|
||||
config_init(&config);
|
||||
|
||||
int result = config_read_file(&config, "webfused.conf");
|
||||
ASSERT_EQ(CONFIG_TRUE, result);
|
||||
|
||||
config_destroy(&config);
|
||||
}
|
||||
Reference in New Issue
Block a user