Added dummy testcases to integrate all source files into coverage meassurement
This commit is contained in:
14
test/unittest/shellmatta/test_shellmatta_doInit.cpp
Normal file
14
test/unittest/shellmatta/test_shellmatta_doInit.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "test/framework/catch.hpp"
|
||||
#include "src/shellmatta.c"
|
||||
#include <string.h>
|
||||
|
||||
TEST_CASE( "shellmatta dummy" ) {
|
||||
|
||||
shellmatta_instance_t inst;
|
||||
//shellmatta_handle_t handle;
|
||||
inst.inputCount = 0u;
|
||||
|
||||
//shellmatta_doInit(&inst, &handle, )
|
||||
|
||||
REQUIRE( inst.inputCount == 0u);
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
#include "test/framework/catch.hpp"
|
||||
#include "src/shellmatta_autocomplete.c"
|
||||
#include <string.h>
|
||||
|
||||
TEST_CASE( "shellmatta_autocomplete_run dummy" ) {
|
||||
|
||||
shellmatta_instance_t inst;
|
||||
inst.inputCount = 0u;
|
||||
|
||||
autocomplete_run(&inst);
|
||||
|
||||
REQUIRE( inst.inputCount == 0u);
|
||||
}
|
@@ -0,0 +1,13 @@
|
||||
#include "test/framework/catch.hpp"
|
||||
#include "src/shellmatta_escape.c"
|
||||
#include <string.h>
|
||||
|
||||
TEST_CASE( "shellmatta_escape dummy" ) {
|
||||
|
||||
shellmatta_instance_t inst;
|
||||
inst.inputCount = 0u;
|
||||
|
||||
escape_processArrowKeys(&inst);
|
||||
|
||||
REQUIRE( inst.inputCount == 0u);
|
||||
}
|
13
test/unittest/shellmatta_history/test_appendHistoryByte.cpp
Normal file
13
test/unittest/shellmatta_history/test_appendHistoryByte.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "test/framework/catch.hpp"
|
||||
#include "src/shellmatta_history.c"
|
||||
#include <string.h>
|
||||
|
||||
TEST_CASE( "shellmatta_history dummy" ) {
|
||||
|
||||
shellmatta_instance_t inst;
|
||||
inst.inputCount = 0u;
|
||||
|
||||
//appendHistoryByte(&inst, 'a');
|
||||
|
||||
REQUIRE( inst.inputCount == 0u);
|
||||
}
|
Reference in New Issue
Block a user