Sha256: ecb1107cdb3d197edc34945a191eadb37afbf9cfb57a8a7358a641b7a1e41fe1

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

/* =========================================================================
    Ceedling - Test-Centered Build System for C
    ThrowTheSwitch.org
    Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
    SPDX-License-Identifier: MIT
========================================================================= */

#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_TRUE(Executor_Run());
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 examples/temp_sensor/test/TestExecutor.c
ceedling-1.0.0 examples/temp_sensor/test/TestExecutor.c