/openbmc/telemetry/tests/src/ |
H A D | test_metric.cpp | 60 std::shared_ptr<Metric> sut; member in TestMetric 65 sut = makeSut(params); in TEST_F() 68 registerForUpdates(Truly([sut = sut.get()](const auto& a0) { in TEST_F() 72 sut->initialize(); in TEST_F() 77 sut = makeSut(params); in TEST_F() 80 unregisterFromUpdates(Truly([sut = sut.get()](const auto& a0) { in TEST_F() 84 sut->deinitialize(); in TEST_F() 89 sut = makeSut(params); in TEST_F() 127 sut = makeSut(params); in SetUp() 128 sut->initialize(); in SetUp() [all …]
|
H A D | test_persistent_json_storage.cpp | 33 PersistentJsonStorage sut{directory}; member in TestPersistentJsonStorage 47 sut.store(fileName, data); in TEST_F() 49 ASSERT_THAT(sut.load(fileName), Eq(data)); in TEST_F() 54 EXPECT_THAT(sut.list(), SizeIs(0u)); in TEST_F() 69 sut.list(), in TEST_F() 90 sut.list(), in TEST_F() 101 sut.store(fileName, data); in TEST_F() 103 ASSERT_THAT(sut.remove(fileName), Eq(true)); in TEST_F() 104 ASSERT_THAT(sut.load(fileName), Eq(std::nullopt)); in TEST_F() 109 ASSERT_THAT(sut.remove(fileName), Eq(false)); in TEST_F() [all …]
|
H A D | test_sensor.cpp | 34 sut->registerForUpdates(listener); in registerForUpdates() 41 sut->unregisterFromUpdates(listener); in unregisterFromUpdates() 56 std::shared_ptr<Sensor> sut = sensorCache.makeSensor<Sensor>( member in TestSensor 68 ASSERT_THAT(sut->id(), in TEST_F() 92 sut->registerForUpdates(listenerMock); in TEST_F() 93 sut->registerForUpdates(listenerMock2); in TEST_F() 104 EXPECT_EQ(sut->getLabeledSensorInfo(), expected); in TEST_F() 113 EXPECT_EQ(sut->getName(), path); in TEST_F() 122 EXPECT_EQ(sut->getName(), "metadata2"); in TEST_F() 205 sensorUpdated(Ref(*sut), Ge(timestamp), DoubleEq(42.7))) in TEST_F() [all …]
|
H A D | test_report.cpp | 65 std::unique_ptr<Report> sut; member in TestReport 408 sut = makeReport( in TEST_F() 752 sut = makeReport(GetParam()); in SetUp() 809 sut = in SetUp() 1179 sut = nullptr; in TEST_F() 1227 sut = makeReport(defaultParams() in TEST_F() 1256 sut = makeReport(ReportParams() in TEST_F() 1268 sut = makeReport(ReportParams() in TEST_F() 1282 sut = makeReport(ReportParams() in TEST_F() 1310 sut = makeReport(params); in TEST_F() [all …]
|
H A D | test_trigger.cpp | 57 std::unique_ptr<Trigger> sut; member in TestTrigger 67 sut = makeTrigger(triggerParams); in SetUp() 166 getProperty<bool>(sut->getPath(), "Discrete"), in TEST_F() 177 EXPECT_THAT(sut->getPath(), in TEST_F() 332 sut->getPath(), "Thresholds", in TEST_F() 344 sut->getPath(), "Name", in TEST_F() 408 auto ec = deleteTrigger(sut->getPath()); in TEST_F() 418 auto ec = deleteTrigger(sut->getPath()); in TEST_F() 454 sut = makeTrigger(triggerParams); in TEST_F() 474 sut = makeTrigger(triggerParams); in TEST_F() [all …]
|
H A D | test_ensure.cpp | 11 utils::Ensure<std::function<void()>> sut; member in TestEnsure 18 sut = [this] { ++executed; }; in TEST_F() 19 sut = nullptr; in TEST_F() 26 sut = [this] { ++executed; }; in TEST_F() 27 sut = [this] { executed += 10; }; in TEST_F() 28 sut = nullptr; in TEST_F()
|
H A D | test_on_change_threshold.cpp | 24 std::shared_ptr<OnChangeThreshold> sut; member in TestOnChangeThreshold 40 sut = std::make_shared<OnChangeThreshold>( in SetUp() 53 registerForUpdates(Truly([sut = sut.get()](const auto& x) { in TEST_F() 54 return x.lock().get() == sut; in TEST_F() 58 sut->initialize(); in TEST_F() 69 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_F() 76 sut->initialize(); in TEST_F() 77 sut->sensorUpdated(*sensorMocks.front(), 0ms, 42); in TEST_F() 147 sut->initialize(); in TEST_P() 150 sut->sensorUpdated(*sensorMocks.front(), 0ms, 42); in TEST_P() [all …]
|
H A D | test_trigger_actions.cpp | 55 sut = std::make_unique<ActionType>(type, threshold); in SetUp() 61 sut->commit("MyTrigger", std::nullopt, "MySensor", in commit() 65 std::unique_ptr<ActionType> sut; member in action::numeric::TestActionNumeric 149 sut = std::make_unique<LogToJournal>(severity); in SetUp() 161 std::unique_ptr<LogToJournal> sut; member in action::discrete::TestLogToJournalDiscrete 188 sut = std::make_unique<LogToRedfishEventLog>(); in SetUp() 198 std::unique_ptr<LogToRedfishEventLog> sut; member in action::discrete::TestLogToRedfishEventLogDiscrete 220 sut = std::make_unique<ActionType>(); in SetUp() 229 std::unique_ptr<ActionType> sut; member in action::discrete::onChange::TestActionOnChange 274 sut = std::make_unique<UpdateReport>( in make() [all …]
|
H A D | test_trigger_manager.cpp | 56 sut = makeTriggerManager(); in SetUp() 68 std::unique_ptr<TriggerManager> sut; member in TestTriggerManager 180 Ref(*sut), Ref(storageMock)) in TEST_F() 409 sut->removeTrigger(&triggerMock); in TEST_F() 421 sut->removeTrigger(&triggerMock); in TEST_F() 437 sut->removeTrigger(&triggerMock); in TEST_F() 438 sut->removeTrigger(&triggerMock); in TEST_F() 488 sut = makeTriggerManager(); in TEST_F() 506 sut = makeTriggerManager(); in TEST_F() 516 sut = makeTriggerManager(); in TEST_F() [all …]
|
H A D | test_discrete_threshold.cpp | 25 std::shared_ptr<DiscreteThreshold> sut; member in TestDiscreteThreshold 54 sut = makeThreshold(0ms, "90.0", discrete::Severity::critical); in SetUp() 63 registerForUpdates(Truly([sut = sut.get()](const auto& x) { in TEST_F() 64 return x.lock().get() == sut; in TEST_F() 68 sut->initialize(); in TEST_F() 86 sut = makeThreshold(0ms, GetParam(), discrete::Severity::critical); in TEST_P() 89 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_P() 121 auto sut = makeThreshold(0ms, "12.3", discrete::Severity::ok, ""); in TEST_F() local 221 sut->initialize(); in testBodySensorIsUpdatedMultipleTimes() 242 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in testBodySensorIsUpdatedMultipleTimes() [all …]
|
H A D | test_sensor_cache.cpp | 14 SensorCache sut; member in TestSensorCache 67 auto sensor1 = sut.makeSensor<NiceMock<SensorMock>>(id<0>().service, in TEST_P() 69 auto sensor2 = sut.makeSensor<NiceMock<SensorMock>>(id<1>().service, in TEST_P() 78 auto sensor1 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F() 80 auto sensor2 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F() 89 auto mockId1 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F() 92 auto mockId2 = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F() 101 auto id = sut.makeSensor<NiceMock<SensorMock>>("sensor-service", in TEST_F()
|
H A D | test_report_manager.cpp | 40 std::unique_ptr<ReportManager> sut; member in TestReportManager 49 sut = std::make_unique<ReportManager>(std::move(reportFactoryMockPtr), in SetUp() 123 reportFactoryMock.expectMake(reportParams, Ref(*sut), Ref(storageMock)) in TEST_F() 136 reportFactoryMock.expectMake(reportParams, Ref(*sut), Ref(storageMock)) in TEST_F() 168 Ref(*sut), Ref(storageMock)) in TEST_F() 239 reportFactoryMock.expectMake(std::nullopt, Ref(*sut), Ref(storageMock)) in TEST_F() 425 Ref(*sut), Ref(storageMock)) in TEST_F() 467 sut->removeReport(&reportMock); in TEST_F() 479 sut->removeReport(&reportMock); in TEST_F() 495 sut->removeReport(&reportMock); in TEST_F() [all …]
|
H A D | test_numeric_threshold.cpp | 24 std::shared_ptr<NumericThreshold> sut; member in TestNumericThreshold 36 sut = std::make_shared<NumericThreshold>( in makeThreshold() 62 registerForUpdates(Truly([sut = sut.get()](const auto& x) { in TEST_F() 63 return x.lock().get() == sut; in TEST_F() 67 sut->initialize(); in TEST_F() 79 EXPECT_EQ(sut->getThresholdParam(), expected); in TEST_F() 197 sut->initialize(); in testBodySensorIsUpdatedMultipleTimes() 218 sut->sensorUpdated(*sensorMocks[idx], 0ms, value); in testBodySensorIsUpdatedMultipleTimes() 227 sut->sensorUpdated(*sensorMocks[index], 42ms, value); in testBodySensorIsUpdatedMultipleTimes()
|
/openbmc/openbmc/poky/meta/classes-global/ |
H A D | mirrors.bbclass | 35 ftp://dante.ctan.org/tex-archive http://sunsite.sut.ac.jp/pub/archives/ctan/ \
|