run-ntp_prio_q.c   [plain text]


/* 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++; \
  if (TEST_PROTECT()) \
  { \
      setUp(); \
      TestFunc(); \
  } \
  if (TEST_PROTECT() && !TEST_IS_IGNORED) \
  { \
    tearDown(); \
  } \
  UnityConcludeTest(); \
}

//=======Automagically Detected Files To Include=====
#include "unity.h"
#include <setjmp.h>
#include <stdio.h>
#include "config.h"
#include "ntp.h"
#include "ntp_calendar.h"
#include "ntp_stdlib.h"
#include "ntp_prio_q.h"
#include <string.h>

//=======External Functions This Runner Calls=====
extern void setUp(void);
extern void tearDown(void);
extern void test_AllocateDeallocateNode(void);
extern void test_EmptyQueue(void);
extern void test_OneElementQueue(void);
extern void test_MultipleElementQueue(void);
extern void test_CustomOrderQueue(void);
extern void test_DestroyNonEmptyQueue(void);
extern void test_AppendQueues(void);


//=======Test Reset Option=====
void resetTest(void);
void resetTest(void)
{
  tearDown();
  setUp();
}

char const *progname;


//=======MAIN=====
int main(int argc, char *argv[])
{
  progname = argv[0];
  UnityBegin("ntp_prio_q.c");
  RUN_TEST(test_AllocateDeallocateNode, 39);
  RUN_TEST(test_EmptyQueue, 46);
  RUN_TEST(test_OneElementQueue, 60);
  RUN_TEST(test_MultipleElementQueue, 88);
  RUN_TEST(test_CustomOrderQueue, 126);
  RUN_TEST(test_DestroyNonEmptyQueue, 183);
  RUN_TEST(test_AppendQueues, 205);

  return (UnityEnd());
}