mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-29 16:17:14 +09:00
* feat: expose RRDtool 1.11 graph axis controls Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix: constrain axis template inheritance checkboxes Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(rrd): exercise native aggregate validation and enforce coverage Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * ci: share changed-code coverage contracts and enforce shell policy Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(ci): run request coverage with portable path matching Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * ci: retain bootstrap coverage and validate request dispatch Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test: synchronize native coverage fixture dispatch Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test: measure coverage at the exact PR revision Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
35 lines
944 B
PHP
35 lines
944 B
PHP
<?php
|
|
// Copyright (C) 2004-2026 The Cacti Group. GPL-2.0-or-later.
|
|
namespace CactiAxisFixture;
|
|
|
|
// These boundaries are confined to this fixture namespace.
|
|
function get_rrdtool_version(): string {
|
|
return $GLOBALS['axis_fixture_version'];
|
|
}
|
|
function read_config_option(string $name): string {
|
|
return '';
|
|
}
|
|
function rrdtool_resolve_graph_text(string $value, array $graph): string {
|
|
return $value;
|
|
}
|
|
function rrdtool_function_format_graph_date(array $data): string {
|
|
return '';
|
|
}
|
|
function rrdtool_function_theme_font_options(array $data): string {
|
|
return '';
|
|
}
|
|
class CactiValidator extends \CactiValidator {
|
|
}
|
|
|
|
function db_fetch_row_prepared(string $sql, array $params): array {
|
|
return $GLOBALS['axis_fixture_template'];
|
|
}
|
|
function db_fetch_cell_prepared(string $sql, array $params): int {
|
|
return 1;
|
|
}
|
|
function db_execute_prepared(string $sql, array $params): bool {
|
|
$GLOBALS['axis_fixture_updates'][] = [$sql, $params];
|
|
|
|
return true;
|
|
}
|