unity_fixture_internals.h 1.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//- Copyright (c) 2010 James Grenning and Contributed to Unity Project
/* ==========================================
    Unity Project - A Test Framework for C
    Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
    [Released under MIT License. Please refer to license.txt for details]
========================================== */

#ifndef UNITY_FIXTURE_INTERNALS_H_
#define UNITY_FIXTURE_INTERNALS_H_

typedef struct _UNITY_FIXTURE_T
{
    int Verbose;
    unsigned int RepeatCount;
    const char* NameFilter;
    const char* GroupFilter;
} UNITY_FIXTURE_T;

19
typedef void unityfunction(void);
20 21 22 23 24 25 26
void UnityTestRunner(unityfunction* setup,
                     unityfunction* body,
                     unityfunction* teardown,
                     const char* printableName,
                     const char* group,
                     const char* name,
                     const char* file, int line);
27

28
void UnityIgnoreTest(const char* printableName, const char* group, const char* name);
29 30
void UnityMalloc_StartTest(void);
void UnityMalloc_EndTest(void);
31 32 33
UNITY_COUNTER_TYPE UnityFailureCount(void);
UNITY_COUNTER_TYPE UnityIgnoreCount(void);
UNITY_COUNTER_TYPE UnityTestsCount(void);
34
int UnityGetCommandLineOptions(int argc, const char* argv[]);
35
void UnityConcludeFixtureTest(void);
36

37
void UnityPointer_Set(void** ptr, void* newValue, UNITY_LINE_TYPE line);
38 39
void UnityPointer_UndoAllSets(void);
void UnityPointer_Init(void);
40 41

#endif /* UNITY_FIXTURE_INTERNALS_H_ */