Source
if (ZBX_MOCK_SUCCESS != zbx_strtime_to_timespec(zbx_mock_get_parameter_string("out.start"), &ts_start))
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
int __wrap_zbx_db_is_null(const char *field);
zbx_db_row_t __wrap_zbx_db_fetch(zbx_db_result_t result);
zbx_db_result_t __wrap_zbx_db_select(const char *fmt, ...);
void __wrap_zbx_recalc_time_period(time_t *tm_start, int table_group);
int __wrap_zbx_db_is_null(const char *field)
{
ZBX_UNUSED(field);
return SUCCEED;
}
zbx_db_row_t __wrap_zbx_db_fetch(zbx_db_result_t result)
{
ZBX_UNUSED(result);
return NULL;
}
zbx_db_result_t __wrap_zbx_db_select(const char *fmt, ...)
{
ZBX_UNUSED(fmt);
return NULL;
}
void __wrap_zbx_recalc_time_period(time_t *tm_start, int table_group)
{
ZBX_UNUSED(tm_start);
ZBX_UNUSED(table_group);
}
void zbx_mock_test_entry(void **state)
{
time_t start, end;
const char *param;
int expected_ret, returned_ret;
char *error = NULL;
zbx_timespec_t ts_from, ts_start, ts_end, ts;
ZBX_UNUSED(state);