Sha256: 5921c02208e4da91b65d886d9b81230d71820a978e8fb6a32b870ef3f6ab65be

Contents?: true

Size: 750 Bytes

Versions: 4

Compression:

Stored size: 750 Bytes

Contents

#include "MockTimerInterruptHandler.h"
#include "MockTimerModel.h"
#include "MockTimerHardware.h"
#include "src/TimerConductor.h"
#include "src/Types.h"
#include "/Library/Ruby/Gems/2.6.0/gems/ceedling-0.31.0/vendor/unity/src/unity.h"


void setUp(void)

{

}



void tearDown(void)

{

}



void testInitShouldCallHardwareInit(void)

{

  TimerHardware_Init_CMockExpect(18);



  TimerConductor_Init();

}



void testRunShouldGetSystemTimeAndPassOnToModelForEventScheduling(void)

{

  Timer_GetSystemTime_CMockExpectAndReturn(25, 1230);

  TimerModel_UpdateTime_CMockExpect(26, 1230);

  TimerConductor_Run();



  Timer_GetSystemTime_CMockExpectAndReturn(29, 837460);

  TimerModel_UpdateTime_CMockExpect(30, 837460);

  TimerConductor_Run();

}

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
ceedling-0.31.1 examples/temp_sensor/build/test/cache/TestTimerConductor.c
ceedling-0.31.1 examples/temp_sensor/build/test/preprocess/files/TestTimerConductor.c
ceedling-0.31.0 examples/temp_sensor/build/test/cache/TestTimerConductor.c
ceedling-0.31.0 examples/temp_sensor/build/test/preprocess/files/TestTimerConductor.c