|
ifw-daq 3.1.0
IFW Data Acquisition modules
|
daq::ManagerImpl tests More...
#include <daq/manager.hpp>#include <fmt/ostream.h>#include <regex>#include "daq/fits/keyword.hpp"#include "mock/daqController.hpp"#include "mock/dpmClientMock.hpp"#include "mock/keywordFormatterMock.hpp"#include "mock/mockWorkspace.hpp"#include "statusObserver.hpp"#include "utils.hpp"#include <gtest/gtest.h>#include <log4cplus/loggingmacros.h>#include <daq/error/report.hpp>Go to the source code of this file.
Classes | |
| struct | FixtureBase |
| class | TestManagerImplLifecycle |
| class | TestManagerImpl |
Functions | |
| MATCHER_P (KeywordNameEq, name, "keyword name equals") | |
| TEST_F (TestManagerImplLifecycle, AddDaqNotifiesObserver) | |
| TEST_F (TestManagerImplLifecycle, AwaitStateCompletesWithAbandonedManager) | |
| TEST_F (TestManagerImpl, MakeId) | |
| TEST_F (TestManagerImpl, StartDaqWithSameIdThrowsInvalidDaqId) | |
| TEST_F (TestManagerImpl, StartDaqWithUnknownKeywordsThrowsUnknownKeyword) | |
| TEST_F (TestManagerImpl, StartDaqWithInvalidKeywordsThrowsInvalidKeyword) | |
| TEST_F (TestManagerImpl, StartDaqAsyncStartsDaq) | |
| TEST_F (TestManagerImpl, StartDaqAbortsIfDaqControllerFails) | |
| Tests the behaviour that if DaqController::StartAsync() fails it should automatically force-abort the acquisition. | |
| TEST_F (TestManagerImpl, StopNonexistingDaqThrowsInvalidArgument) | |
| TEST_F (TestManagerImpl, StopDaqAsyncStopsDaq) | |
| TEST_F (TestManagerImpl, AbortNonexistingDaqThrowsInvalidArgumentEvenIfTolerant) | |
| TEST_F (TestManagerImpl, AbortDaqAsyncAbortsDaq) | |
| TEST_F (TestManagerImpl, UpdateKeywordsUpdatesKeywords) | |
| TEST_F (TestManagerImpl, UpdateKeywordsForNonexistingDaqThrowsInvalidArgument) | |
| TEST_F (TestManagerImpl, GetStatus) | |
| TEST_F (TestManagerImpl, GetStatusThrowsIfDaqDoesNotExist) | |
| TEST_F (TestManagerImpl, GetStatusReturnsArchivedStatus) | |
| TEST_F (TestManagerImpl, AwaitDaqStateWorksForCompletedArchivedDaqs) | |
| TEST_F (TestManagerImpl, AwaitDaqStateReturnsExceptionalFutureForIncompleteArchivedDaqs) | |
| TEST_F (TestManagerImpl, AwaitDaqStateReturnsReadyFutureIfConditionIsFulfilled) | |
| TEST_F (TestManagerImpl, AwaitDaqStateIsReadyWhenConditionIsFulfilled) | |
| TEST_F (TestManagerImpl, AwaitDaqStateIsReadyWhenItTimesout) | |
| TEST_F (TestManagerImpl, StoppedDaqTransitionsToNotScheduledAndIsScheduledThenCompleted) | |
| TEST_F (TestManagerImpl, RestoreFromWorkspaceAddsDaq) | |
| TEST_F (TestManagerImpl, RestoreFromWorkspaceArchivesStaleDaqs) | |
| TEST_F (TestManagerImpl, RestoreFromWorkspaceSkipsMissingDaq) | |
| TEST_F (TestManagerImpl, RestoreFromWorkspaceIgnoresArchiveFailure) | |
| TEST_F (TestManagerImpl, ContextSignalUpdatesWorkspace) | |
daq::ManagerImpl tests
Definition in file testManager.cpp.
| MATCHER_P | ( | KeywordNameEq | , |
| name | , | ||
| "keyword name equals" | |||
| ) |
Definition at line 29 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AbortDaqAsyncAbortsDaq | |||
| ) |
Definition at line 441 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AbortNonexistingDaqThrowsInvalidArgumentEvenIfTolerant | |||
| ) |
Definition at line 435 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AwaitDaqStateIsReadyWhenConditionIsFulfilled | |||
| ) |
Definition at line 537 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AwaitDaqStateIsReadyWhenItTimesout | |||
| ) |
Definition at line 551 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AwaitDaqStateReturnsExceptionalFutureForIncompleteArchivedDaqs | |||
| ) |
Definition at line 514 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AwaitDaqStateReturnsReadyFutureIfConditionIsFulfilled | |||
| ) |
Definition at line 525 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| AwaitDaqStateWorksForCompletedArchivedDaqs | |||
| ) |
Definition at line 501 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| ContextSignalUpdatesWorkspace | |||
| ) |
Definition at line 740 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| GetStatus | |||
| ) |
Definition at line 477 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| GetStatusReturnsArchivedStatus | |||
| ) |
Definition at line 494 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| GetStatusThrowsIfDaqDoesNotExist | |||
| ) |
Definition at line 488 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| MakeId | |||
| ) |
Definition at line 296 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| RestoreFromWorkspaceAddsDaq | |||
| ) |
Definition at line 613 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| RestoreFromWorkspaceArchivesStaleDaqs | |||
| ) |
Definition at line 644 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| RestoreFromWorkspaceIgnoresArchiveFailure | |||
| ) |
Definition at line 706 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| RestoreFromWorkspaceSkipsMissingDaq | |||
| ) |
Definition at line 673 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StartDaqAbortsIfDaqControllerFails | |||
| ) |
Tests the behaviour that if DaqController::StartAsync() fails it should automatically force-abort the acquisition.
This is mainly done because putting that responsibility on the user is not productive.
note: This behaviour can be made configurable.
Definition at line 388 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StartDaqAsyncStartsDaq | |||
| ) |
Definition at line 366 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StartDaqWithInvalidKeywordsThrowsInvalidKeyword | |||
| ) |
Definition at line 349 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StartDaqWithSameIdThrowsInvalidDaqId | |||
| ) |
Definition at line 315 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StartDaqWithUnknownKeywordsThrowsUnknownKeyword | |||
| ) |
Definition at line 332 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StopDaqAsyncStopsDaq | |||
| ) |
Definition at line 419 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StopNonexistingDaqThrowsInvalidArgument | |||
| ) |
Definition at line 413 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| StoppedDaqTransitionsToNotScheduledAndIsScheduledThenCompleted | |||
| ) |
Definition at line 564 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| UpdateKeywordsForNonexistingDaqThrowsInvalidArgument | |||
| ) |
Definition at line 470 of file testManager.cpp.
| TEST_F | ( | TestManagerImpl | , |
| UpdateKeywordsUpdatesKeywords | |||
| ) |
Definition at line 457 of file testManager.cpp.
| TEST_F | ( | TestManagerImplLifecycle | , |
| AddDaqNotifiesObserver | |||
| ) |
Definition at line 200 of file testManager.cpp.
| TEST_F | ( | TestManagerImplLifecycle | , |
| AwaitStateCompletesWithAbandonedManager | |||
| ) |
Definition at line 246 of file testManager.cpp.