Source
if (ZBX_MOCK_SUCCESS != zbx_strtime_to_timespec(zbx_mock_get_object_member_string(htime, "start"), &start_exp))
/*
** 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, ...);
zbx_trend_state_t __wrap_zbx_trends_get_avg(const char *table, zbx_uint64_t itemid, time_t start, time_t end,
double *value);
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);
}
static zbx_mock_handle_t hout;
static int iteration;
zbx_trend_state_t __wrap_zbx_trends_get_avg(const char *table, zbx_uint64_t itemid, time_t start, time_t end,
double *value)
{
zbx_mock_handle_t htime;