Source
if (ZBX_MOCK_SUCCESS != zbx_strtime_to_timespec(zbx_mock_get_object_member_string(htime, "start"), &start_exp))
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
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;