Sha256: db1bc8f44e9183b2a7909c0c0b8fac6b25b37d4aee0f47c9ab181500cf384ac9

Contents?: true

Size: 699 Bytes

Versions: 27

Compression:

Stored size: 699 Bytes

Contents

#include "unity.h"
#include "Types.h"
#include "Executor.h"
#include "MockModel.h"
#include "MockUsartConductor.h"
#include "MockAdcConductor.h"
#include "MockTimerConductor.h"
#include "MockIntrinsicsWrapper.h"

void setUp(void)
{
}

void tearDown(void)
{
}

void testInitShouldCallInitOfAllConductorsAndTheModel(void)
{
  Model_Init_Expect();
  UsartConductor_Init_Expect();
  AdcConductor_Init_Expect();
  TimerConductor_Init_Expect();
  Interrupt_Enable_Expect();
  
  Executor_Init();
}

void testRunShouldCallRunForEachConductorAndReturnTrueAlways(void)
{
  UsartConductor_Run_Expect();
  TimerConductor_Run_Expect();
  AdcConductor_Run_Expect();

  TEST_ASSERT_EQUAL(TRUE, Executor_Run());
}

Version data entries

27 entries across 14 versions & 1 rubygems

Version Path
ceedling-0.31.1 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.31.1 examples/temp_sensor/test/TestExecutor.c
ceedling-0.31.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.31.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.30.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.30.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.3 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.3 examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.2 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.2 examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.1 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.28.1 examples/temp_sensor/test/TestExecutor.c
ceedling-0.27.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.27.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.25.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.25.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.24.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.24.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.22.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.22.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c