TwiceAsNice  2019-02-18
Classes | Functions
PulseGeneratorImplTest.cpp File Reference
#include <boost/shared_ptr.hpp>
#include <boost/test/unit_test.hpp>
#include "Device/QuantumComposers/OutputChannel.h"
#include "Device/QuantumComposers/PulseGeneratorImpl.h"
#include "Device/QuantumComposers/PulseGeneratorException.h"
#include "test/Device/QuantumComposers/SerialLineMock.h"
#include <Nice/Log.h>
Include dependency graph for PulseGeneratorImplTest.cpp:

Classes

struct  Fixture
 

Functions

 BOOST_FIXTURE_TEST_SUITE (PulseGeneratorImpls, Fixture)
 
 BOOST_AUTO_TEST_CASE (ShouldSendResetCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenResetingHasFailed)
 
 BOOST_AUTO_TEST_CASE (ShouldSendStartOutputCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenStartingOutputHasFailed)
 
 BOOST_AUTO_TEST_CASE (ShouldSendStopOutputCommand)
 
 BOOST_AUTO_TEST_CASE (ShouldQueryPulseOutputEnableStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldQueryDisabledPulseOutput)
 
 BOOST_AUTO_TEST_CASE (ShouldEnableExternalTrigger)
 
 BOOST_AUTO_TEST_CASE (ShouldDisableExternalTrigger)
 
 BOOST_AUTO_TEST_CASE (ShouldDetectedEnabledExternalTrigger)
 
 BOOST_AUTO_TEST_CASE (ShouldDetectedDisabledExternalTrigger)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionIfExternalTriggerStatusIsUnknown)
 
 BOOST_AUTO_TEST_CASE (ShouldSendSoftwareExternalTrigger)
 
 BOOST_AUTO_TEST_CASE (ShouldSetClockPeriod)
 
 BOOST_AUTO_TEST_CASE (ShouldQueryClockPeriod)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenQueryingClockPeriodFails)
 
 BOOST_AUTO_TEST_CASE (ShouldSendContinuousModeRequest)
 
 BOOST_AUTO_TEST_CASE (ShouldSentSingleShotModeRequest)
 
 BOOST_AUTO_TEST_CASE (ShouldQueryInternalContinuousOutputMode)
 
 BOOST_AUTO_TEST_CASE (ShouldQueryInternalSingleShoutOutputMode)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionWhenInternalOutputModeIsInvalid)
 
 BOOST_AUTO_TEST_CASE (ShouldEnableOutputChannelA)
 
 BOOST_AUTO_TEST_CASE (ShouldEnableOutputChannelB)
 
 BOOST_AUTO_TEST_CASE (ShouldDisableOutputChannelD)
 
 BOOST_AUTO_TEST_CASE (ShouldGetEnabledOutputChannelStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldGetDisabledOutputChannelStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldComplainIfGettingBogusOutputChannelStatus)
 
 BOOST_AUTO_TEST_CASE (ShouldSetOutputPulseWidth)
 
 BOOST_AUTO_TEST_CASE (ShouldGetOutputPulseWidth)
 
 BOOST_AUTO_TEST_CASE (ShouldSetOutputPulseDelay)
 
 BOOST_AUTO_TEST_CASE (ShouldGetOutputPulseDelay)
 
 BOOST_AUTO_TEST_CASE (ShouldUseContinousOutputModeForOutputChannels)
 
 BOOST_AUTO_TEST_CASE (ShouldUseDutyCycleChannelMode)
 
 BOOST_AUTO_TEST_CASE (ShouldGetDutyCycleChannelMode)
 
 BOOST_AUTO_TEST_CASE (ShouldSetNumberOfPulsesDuringOnCycle)
 
 BOOST_AUTO_TEST_CASE (ShouldGetNumberOfPulsesDuringOnCycle)
 
 BOOST_AUTO_TEST_CASE (ShouldSetNumberOfPulsesDuringOffCycle)
 
 BOOST_AUTO_TEST_CASE (ShouldGetNumberOfPulsesDuringOffCycle)
 
 BOOST_AUTO_TEST_CASE (ShouldInvertChannelPolarity)
 
 BOOST_AUTO_TEST_CASE (ShouldUseNormalChannelPolarity)
 
 BOOST_AUTO_TEST_CASE (ShouldGetChannelPolarity)
 
 BOOST_AUTO_TEST_CASE (ShouldThrowExceptionInCaseOfInvalidPulsePolarity)
 
 BOOST_AUTO_TEST_CASE (ShouldProvideNullObject)
 
 BOOST_AUTO_TEST_SUITE_END ()
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/43]

BOOST_AUTO_TEST_CASE ( ShouldSendResetCommand  )

◆ BOOST_AUTO_TEST_CASE() [2/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenResetingHasFailed  )

◆ BOOST_AUTO_TEST_CASE() [3/43]

BOOST_AUTO_TEST_CASE ( ShouldSendStartOutputCommand  )

◆ BOOST_AUTO_TEST_CASE() [4/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenStartingOutputHasFailed  )

◆ BOOST_AUTO_TEST_CASE() [5/43]

BOOST_AUTO_TEST_CASE ( ShouldSendStopOutputCommand  )

◆ BOOST_AUTO_TEST_CASE() [6/43]

BOOST_AUTO_TEST_CASE ( ShouldQueryPulseOutputEnableStatus  )

◆ BOOST_AUTO_TEST_CASE() [7/43]

BOOST_AUTO_TEST_CASE ( ShouldQueryDisabledPulseOutput  )

◆ BOOST_AUTO_TEST_CASE() [8/43]

BOOST_AUTO_TEST_CASE ( ShouldEnableExternalTrigger  )

◆ BOOST_AUTO_TEST_CASE() [9/43]

BOOST_AUTO_TEST_CASE ( ShouldDisableExternalTrigger  )

◆ BOOST_AUTO_TEST_CASE() [10/43]

BOOST_AUTO_TEST_CASE ( ShouldDetectedEnabledExternalTrigger  )

◆ BOOST_AUTO_TEST_CASE() [11/43]

BOOST_AUTO_TEST_CASE ( ShouldDetectedDisabledExternalTrigger  )

◆ BOOST_AUTO_TEST_CASE() [12/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionIfExternalTriggerStatusIsUnknown  )

◆ BOOST_AUTO_TEST_CASE() [13/43]

BOOST_AUTO_TEST_CASE ( ShouldSendSoftwareExternalTrigger  )

◆ BOOST_AUTO_TEST_CASE() [14/43]

BOOST_AUTO_TEST_CASE ( ShouldSetClockPeriod  )

◆ BOOST_AUTO_TEST_CASE() [15/43]

BOOST_AUTO_TEST_CASE ( ShouldQueryClockPeriod  )

◆ BOOST_AUTO_TEST_CASE() [16/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenQueryingClockPeriodFails  )

◆ BOOST_AUTO_TEST_CASE() [17/43]

BOOST_AUTO_TEST_CASE ( ShouldSendContinuousModeRequest  )

◆ BOOST_AUTO_TEST_CASE() [18/43]

BOOST_AUTO_TEST_CASE ( ShouldSentSingleShotModeRequest  )

◆ BOOST_AUTO_TEST_CASE() [19/43]

BOOST_AUTO_TEST_CASE ( ShouldQueryInternalContinuousOutputMode  )

◆ BOOST_AUTO_TEST_CASE() [20/43]

BOOST_AUTO_TEST_CASE ( ShouldQueryInternalSingleShoutOutputMode  )

◆ BOOST_AUTO_TEST_CASE() [21/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionWhenInternalOutputModeIsInvalid  )

◆ BOOST_AUTO_TEST_CASE() [22/43]

BOOST_AUTO_TEST_CASE ( ShouldEnableOutputChannelA  )

◆ BOOST_AUTO_TEST_CASE() [23/43]

BOOST_AUTO_TEST_CASE ( ShouldEnableOutputChannelB  )

◆ BOOST_AUTO_TEST_CASE() [24/43]

BOOST_AUTO_TEST_CASE ( ShouldDisableOutputChannelD  )

◆ BOOST_AUTO_TEST_CASE() [25/43]

BOOST_AUTO_TEST_CASE ( ShouldGetEnabledOutputChannelStatus  )

◆ BOOST_AUTO_TEST_CASE() [26/43]

BOOST_AUTO_TEST_CASE ( ShouldGetDisabledOutputChannelStatus  )

◆ BOOST_AUTO_TEST_CASE() [27/43]

BOOST_AUTO_TEST_CASE ( ShouldComplainIfGettingBogusOutputChannelStatus  )

◆ BOOST_AUTO_TEST_CASE() [28/43]

BOOST_AUTO_TEST_CASE ( ShouldSetOutputPulseWidth  )

◆ BOOST_AUTO_TEST_CASE() [29/43]

BOOST_AUTO_TEST_CASE ( ShouldGetOutputPulseWidth  )

◆ BOOST_AUTO_TEST_CASE() [30/43]

BOOST_AUTO_TEST_CASE ( ShouldSetOutputPulseDelay  )

◆ BOOST_AUTO_TEST_CASE() [31/43]

BOOST_AUTO_TEST_CASE ( ShouldGetOutputPulseDelay  )

◆ BOOST_AUTO_TEST_CASE() [32/43]

BOOST_AUTO_TEST_CASE ( ShouldUseContinousOutputModeForOutputChannels  )

◆ BOOST_AUTO_TEST_CASE() [33/43]

BOOST_AUTO_TEST_CASE ( ShouldUseDutyCycleChannelMode  )

◆ BOOST_AUTO_TEST_CASE() [34/43]

BOOST_AUTO_TEST_CASE ( ShouldGetDutyCycleChannelMode  )

◆ BOOST_AUTO_TEST_CASE() [35/43]

BOOST_AUTO_TEST_CASE ( ShouldSetNumberOfPulsesDuringOnCycle  )

◆ BOOST_AUTO_TEST_CASE() [36/43]

BOOST_AUTO_TEST_CASE ( ShouldGetNumberOfPulsesDuringOnCycle  )

◆ BOOST_AUTO_TEST_CASE() [37/43]

BOOST_AUTO_TEST_CASE ( ShouldSetNumberOfPulsesDuringOffCycle  )

◆ BOOST_AUTO_TEST_CASE() [38/43]

BOOST_AUTO_TEST_CASE ( ShouldGetNumberOfPulsesDuringOffCycle  )

◆ BOOST_AUTO_TEST_CASE() [39/43]

BOOST_AUTO_TEST_CASE ( ShouldInvertChannelPolarity  )

◆ BOOST_AUTO_TEST_CASE() [40/43]

BOOST_AUTO_TEST_CASE ( ShouldUseNormalChannelPolarity  )

◆ BOOST_AUTO_TEST_CASE() [41/43]

BOOST_AUTO_TEST_CASE ( ShouldGetChannelPolarity  )

◆ BOOST_AUTO_TEST_CASE() [42/43]

BOOST_AUTO_TEST_CASE ( ShouldThrowExceptionInCaseOfInvalidPulsePolarity  )

◆ BOOST_AUTO_TEST_CASE() [43/43]

BOOST_AUTO_TEST_CASE ( ShouldProvideNullObject  )

◆ BOOST_AUTO_TEST_SUITE_END()

BOOST_AUTO_TEST_SUITE_END ( )

◆ BOOST_FIXTURE_TEST_SUITE()

BOOST_FIXTURE_TEST_SUITE ( PulseGeneratorImpls  ,
Fixture   
)