mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Correct comments on fake functions of the test application
This commit is contained in:
parent
1e2236afdc
commit
af3353a1da
@ -43,8 +43,9 @@ testing::Environment* const env = testing::AddGlobalTestEnvironment(new TestEnvi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* mock functions, which can not be mocked by mock classes */
|
/* required fake functions from engine sources, which should not be linked to the test application */
|
||||||
|
|
||||||
|
// fake function from qofutil.cpp
|
||||||
gint
|
gint
|
||||||
safe_strcasecmp (const gchar * da, const gchar * db)
|
safe_strcasecmp (const gchar * da, const gchar * db)
|
||||||
{
|
{
|
||||||
@ -52,6 +53,7 @@ safe_strcasecmp (const gchar * da, const gchar * db)
|
|||||||
return g_strcmp0(da, db);
|
return g_strcmp0(da, db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fake function from qoflog.cpp
|
||||||
const char *
|
const char *
|
||||||
qof_log_prettify (const char *name)
|
qof_log_prettify (const char *name)
|
||||||
{
|
{
|
||||||
@ -59,7 +61,8 @@ qof_log_prettify (const char *name)
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is a slightly modified version of the function from engine-helpers.c
|
// fake function from engine-helpers.c
|
||||||
|
// this is a slightly modified version of the original function
|
||||||
const char *
|
const char *
|
||||||
gnc_get_num_action (const Transaction *trans, const Split *split)
|
gnc_get_num_action (const Transaction *trans, const Split *split)
|
||||||
{
|
{
|
||||||
@ -79,6 +82,10 @@ gnc_get_num_action (const Transaction *trans, const Split *split)
|
|||||||
else return NULL;
|
else return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* required fake functions from app-utils sources, which should not be linked to the test application */
|
||||||
|
|
||||||
|
// fake function from gnc-ui-util.c
|
||||||
QofBook *
|
QofBook *
|
||||||
gnc_get_current_book (void)
|
gnc_get_current_book (void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user