diff options
Diffstat (limited to 'tests/unit/mock_cmodule.c')
-rw-r--r-- | tests/unit/mock_cmodule.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/unit/mock_cmodule.c b/tests/unit/mock_cmodule.c new file mode 100644 index 0000000..5f4b6ed --- /dev/null +++ b/tests/unit/mock_cmodule.c @@ -0,0 +1,21 @@ +/* Copyright (C) 2015-2017 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz> + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#include "lib/module.h" + +/* + * Mock module implementation. + */ + +int mock_cmodule_init(struct kr_module *module) +{ + return kr_ok(); +} + +int mock_cmodule_deinit(struct kr_module *module) +{ + return kr_ok(); +} + +KR_MODULE_EXPORT(mock_cmodule) |