Sha256: 7caaedcdc83ec266de99e8c2fc3b2bd5bc638e1eb1e0b5fe569a23f2e9ecd98d

Contents?: true

Size: 735 Bytes

Versions: 54

Compression:

Stored size: 735 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

54 entries across 39 versions & 1 rubygems

Version Path
ceedling-0.29.1 examples/temp_sensor/test/TestExecutor.c
ceedling-0.29.1 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.29.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.29.0 vendor/cmock/examples/temp_sensor/test/TestExecutor.c
ceedling-0.19.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.18.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.18.0 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.17.0 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.17.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.16.0 examples/temp_sensor/test/TestExecutor.c
ceedling-0.16.0 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.15.6 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.15.6 examples/temp_sensor/test/TestExecutor.c
ceedling-0.15.5 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.15.5 examples/temp_sensor/test/TestExecutor.c
ceedling-0.15.4 examples/temp_sensor/test/TestExecutor.c
ceedling-0.15.4 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.15.3 examples/temp_sensor/test/TestExecutor.c
ceedling-0.15.3 vendor/cmock/examples/test/TestExecutor.c
ceedling-0.15.2 vendor/cmock/examples/test/TestExecutor.c