Final assignment for the course "Real Time and Embedded Systems" of THMMY in AUTH university.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

92 lines
2.0 KiB

/* AUTOGENERATED FILE. DO NOT EDIT. */
/*=======Test Runner Used To Run Each Test Below=====*/
#define RUN_TEST(TestFunc, TestLineNum) \
{ \
Unity.CurrentTestName = #TestFunc; \
Unity.CurrentTestLineNumber = TestLineNum; \
Unity.NumberOfTests++; \
UNITY_EXEC_TIME_START(); \
if (TEST_PROTECT()) \
{ \
setUp(); \
TestFunc(); \
} \
if (TEST_PROTECT()) \
{ \
tearDown(); \
} \
UNITY_EXEC_TIME_STOP(); \
UnityConcludeTest(); \
}
/*=======Automagically Detected Files To Include=====*/
#ifdef __WIN32__
#define UNITY_INCLUDE_SETUP_STUBS
#endif
#include "unity.h"
#ifndef UNITY_EXCLUDE_SETJMP_H
#include <setjmp.h>
#endif
#include <stdio.h>
#include "circ_buff.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_circ_buf_init(void);
extern void test_circ_buf_put(void);
extern void test_circ_buf_get(void);
extern void test_circ_buf_empty(void);
extern void test_circ_buf_full(void);
extern void test_circ_buf_capacity(void);
extern void test_circ_buf_size(void);
extern void test_circ_buf_reset(void);
/*=======Suite Setup=====*/
static void suite_setup(void)
{
#if defined(UNITY_WEAK_ATTRIBUTE) || defined(UNITY_WEAK_PRAGMA)
suiteSetUp();
#endif
}
/*=======Suite Teardown=====*/
static int suite_teardown(int num_failures)
{
#if defined(UNITY_WEAK_ATTRIBUTE) || defined(UNITY_WEAK_PRAGMA)
return suiteTearDown(num_failures);
#else
return num_failures;
#endif
}
/*=======Test Reset Option=====*/
void resetTest(void);
void resetTest(void)
{
tearDown();
setUp();
}
/*=======MAIN=====*/
int main(void)
{
suite_setup();
UnityBegin("test/test_circ_buff.c");
RUN_TEST(test_circ_buf_init, 17);
RUN_TEST(test_circ_buf_put, 29);
RUN_TEST(test_circ_buf_get, 73);
RUN_TEST(test_circ_buf_empty, 110);
RUN_TEST(test_circ_buf_full, 142);
RUN_TEST(test_circ_buf_capacity, 164);
RUN_TEST(test_circ_buf_size, 191);
RUN_TEST(test_circ_buf_reset, 220);
return suite_teardown(UnityEnd());
}