Sha256: 3e79d6b1a9ab45a1977eeebcd67e387faeef33c534f993b1f87cf4fefed44e44

Contents?: true

Size: 553 Bytes

Versions: 28

Compression:

Stored size: 553 Bytes

Contents

#include "unity.h"
#include "Configure.h"
#include "stub_io.h"
#include "mock_stub_interrupt.h"

void setUp(void)
{
}

void tearDown(void)
{
}

void test_Configure_should_setup_timer_and_port(void)
    {
    /* Ensure known test state */

    /* Setup expected call chain */
    //these are defined into assembly instructions. 
    cli_Expect(); 
    sei_Expect();
    /* Call function under test */
    Configure();

    /* Verify test results */
    TEST_ASSERT_EQUAL(3, TCCR0B);
    TEST_ASSERT_EQUAL(1, TIMSK0);
    TEST_ASSERT_EQUAL(0x20, DDRB);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ceedling-0.31.1 examples/blinky/test/test_Configure.c
ceedling-0.31.0 examples/blinky/test/test_Configure.c
ceedling-0.30.0 examples/blinky/test/test_Configure.c
ceedling-0.28.3 examples/blinky/test/test_Configure.c
ceedling-0.28.2 examples/blinky/test/test_Configure.c
ceedling-0.28.1 examples/blinky/test/test_Configure.c
ceedling-0.27.0 examples/blinky/test/test_Configure.c
ceedling-0.25.0 examples/blinky/test/test_Configure.c
ceedling-0.24.0 examples/blinky/test/test_Configure.c
ceedling-0.22.0 examples/blinky/test/test_Configure.c
ceedling-0.21.0 examples/blinky/test/test_Configure.c
ceedling-0.20.3 examples/blinky/test/test_Configure.c
ceedling-0.20.2 examples/blinky/test/test_Configure.c
ceedling-0.19.0 examples/blinky/test/test_Configure.c
ceedling-0.18.0 examples/blinky/test/test_Configure.c
ceedling-0.17.0 examples/blinky/test/test_Configure.c
ceedling-0.16.0 examples/blinky/test/test_Configure.c
ceedling-0.15.6 examples/blinky/test/test_Configure.c
ceedling-0.15.5 examples/blinky/test/test_Configure.c
ceedling-0.15.4 examples/blinky/test/test_Configure.c