|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
#include <gtest/gtest.h>#include "kcenon/monitoring/core/result_types.h"#include "kcenon/monitoring/core/error_codes.h"#include "kcenon/monitoring/interfaces/monitoring_core.h"
Go to the source code of this file.
Classes | |
| class | ResultTypesTest |
| Test basic Result pattern functionality. More... | |
Functions | |
| TEST_F (ResultTypesTest, SuccessResultContainsValue) | |
| TEST_F (ResultTypesTest, ErrorResultContainsError) | |
| TEST_F (ResultTypesTest, ValueOrReturnsDefaultOnError) | |
| TEST_F (ResultTypesTest, MapTransformsSuccessValue) | |
| TEST_F (ResultTypesTest, MapPropagatesError) | |
| TEST_F (ResultTypesTest, AndThenChainsOperations) | |
| TEST_F (ResultTypesTest, ResultVoidSuccess) | |
| TEST_F (ResultTypesTest, ResultVoidError) | |
| TEST_F (ResultTypesTest, ErrorCodeToString) | |
| TEST_F (ResultTypesTest, ErrorInfoWithContext) | |
| TEST_F (ResultTypesTest, MetricsSnapshotOperations) | |
| TEST_F (ResultTypesTest, MonitoringConfigValidation) | |
| TEST_F (ResultTypesTest, HealthCheckResult) | |
| TEST_F | ( | ResultTypesTest | , |
| AndThenChainsOperations | ) |
Definition at line 62 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| ErrorCodeToString | ) |
Definition at line 90 of file test_result_types.cpp.
References kcenon::monitoring::error_code_to_string().

| TEST_F | ( | ResultTypesTest | , |
| ErrorInfoWithContext | ) |
Definition at line 97 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| ErrorResultContainsError | ) |
Definition at line 29 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| HealthCheckResult | ) |
Definition at line 158 of file test_result_types.cpp.
References kcenon::monitoring::health_check_result::is_healthy(), kcenon::monitoring::health_check_result::issues, and kcenon::monitoring::health_check_result::status.

| TEST_F | ( | ResultTypesTest | , |
| MapPropagatesError | ) |
Definition at line 54 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| MapTransformsSuccessValue | ) |
Definition at line 46 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| MetricsSnapshotOperations | ) |
Definition at line 112 of file test_result_types.cpp.
References kcenon::monitoring::metrics_snapshot::add_metric(), kcenon::monitoring::cpu, kcenon::monitoring::metrics_snapshot::get_metric(), kcenon::monitoring::metrics_snapshot::metrics, and kcenon::monitoring::unknown.

| TEST_F | ( | ResultTypesTest | , |
| MonitoringConfigValidation | ) |
Definition at line 127 of file test_result_types.cpp.
References kcenon::monitoring::monitoring_config::buffer_size, kcenon::monitoring::monitoring_config::collection_interval, kcenon::monitoring::monitoring_config::history_size, and kcenon::monitoring::monitoring_config::validate().

| TEST_F | ( | ResultTypesTest | , |
| ResultVoidError | ) |
Definition at line 82 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| ResultVoidSuccess | ) |
Definition at line 75 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| SuccessResultContainsValue | ) |
Definition at line 21 of file test_result_types.cpp.
| TEST_F | ( | ResultTypesTest | , |
| ValueOrReturnsDefaultOnError | ) |
Definition at line 38 of file test_result_types.cpp.