|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Unit tests for lightweight Monitor behavior. More...
#include <gtest/gtest.h>#include "Ippl.h"#include "AbsBeamline/Monitor.h"#include "Fields/EMField.h"#include <memory>
Go to the source code of this file.
Classes | |
| class | DummyMonitorField |
| class | TestMonitor |
| class | MonitorTest |
Macros | |
| #define | private public |
Functions | |
| TEST_F (MonitorTest, GetType) | |
| TEST_F (MonitorTest, Bends) | |
| TEST_F (MonitorTest, RequiredNumberOfTimeStepsIsOne) | |
| TEST_F (MonitorTest, GetFieldExtendUsesMonitorHalfLength) | |
| TEST_F (MonitorTest, DefaultCollectionTypeIsSpatial) | |
| TEST_F (MonitorTest, SetCollectionTypeUpdatesCollectionMode) | |
| TEST_F (MonitorTest, PlaneDefaultsToOff) | |
| TEST_F (MonitorTest, PlaneCanBeSetInConcreteTestMonitor) | |
| TEST_F (MonitorTest, IsInsideAcceptsPointsWithinElementLength) | |
| TEST_F (MonitorTest, IsInsideRejectsPointsOutsideElementLength) | |
| TEST_F (MonitorTest, ApplyNullParticleContainerReturnsFalse) | |
| TEST_F (MonitorTest, ApplyToReferenceParticleWithoutReferenceBunchReturnsFalse) | |
| TEST_F (MonitorTest, FieldOnlyApplyOverloadReturnsFalseAndLeavesFieldsUnchanged) | |
| TEST_F (MonitorTest, GoOfflineWithoutLossDataSinkIsSafe) | |
Unit tests for lightweight Monitor behavior.
This test suite validates basic Monitor behavior using:
Definition in file TestMonitor.cpp.
| #define private public |
Definition at line 49 of file TestMonitor.cpp.
| TEST_F | ( | MonitorTest | , |
| ApplyNullParticleContainerReturnsFalse | |||
| ) |
Definition at line 204 of file TestMonitor.cpp.
References Monitor::apply().

| TEST_F | ( | MonitorTest | , |
| ApplyToReferenceParticleWithoutReferenceBunchReturnsFalse | |||
| ) |
Definition at line 210 of file TestMonitor.cpp.
References Monitor::applyToReferenceParticle(), and Monitor::goOnline().

| TEST_F | ( | MonitorTest | , |
| Bends | |||
| ) |
Definition at line 119 of file TestMonitor.cpp.
References Monitor::bends().

| TEST_F | ( | MonitorTest | , |
| DefaultCollectionTypeIsSpatial | |||
| ) |
Definition at line 146 of file TestMonitor.cpp.
References SPATIAL, and Monitor::type_m.
| TEST_F | ( | MonitorTest | , |
| FieldOnlyApplyOverloadReturnsFalseAndLeavesFieldsUnchanged | |||
| ) |
Definition at line 223 of file TestMonitor.cpp.
References Monitor::apply().

| TEST_F | ( | MonitorTest | , |
| GetFieldExtendUsesMonitorHalfLength | |||
| ) |
Definition at line 131 of file TestMonitor.cpp.
References Monitor::getFieldExtend().

| TEST_F | ( | MonitorTest | , |
| GetType | |||
| ) |
Definition at line 113 of file TestMonitor.cpp.
References Monitor::getType(), and MONITOR.

| TEST_F | ( | MonitorTest | , |
| GoOfflineWithoutLossDataSinkIsSafe | |||
| ) |
Definition at line 250 of file TestMonitor.cpp.
References Monitor::goOffline().

| TEST_F | ( | MonitorTest | , |
| IsInsideAcceptsPointsWithinElementLength | |||
| ) |
Definition at line 184 of file TestMonitor.cpp.
References Monitor::isInside(), and TestMonitor::setLength().

| TEST_F | ( | MonitorTest | , |
| IsInsideRejectsPointsOutsideElementLength | |||
| ) |
Definition at line 193 of file TestMonitor.cpp.
References Monitor::isInside(), and TestMonitor::setLength().

| TEST_F | ( | MonitorTest | , |
| PlaneCanBeSetInConcreteTestMonitor | |||
| ) |
Definition at line 173 of file TestMonitor.cpp.
References TestMonitor::getPlane(), TestMonitor::setPlane(), and Monitor::XY.

| TEST_F | ( | MonitorTest | , |
| PlaneDefaultsToOff | |||
| ) |
Definition at line 167 of file TestMonitor.cpp.
References TestMonitor::getPlane(), and Monitor::OFF.

| TEST_F | ( | MonitorTest | , |
| RequiredNumberOfTimeStepsIsOne | |||
| ) |
Definition at line 125 of file TestMonitor.cpp.
References Monitor::getRequiredNumberOfTimeSteps().

| TEST_F | ( | MonitorTest | , |
| SetCollectionTypeUpdatesCollectionMode | |||
| ) |
Definition at line 152 of file TestMonitor.cpp.
References Monitor::setCollectionType(), SPATIAL, TEMPORAL, and Monitor::type_m.
