| /third_party/cJSON/tests/unity/docs/ |
| D | UnityGettingStartedGuide.md | 1 # Unity - Getting Started 9 Unity is a unit test framework. The goal has been to keep it small and 10 functional. The core Unity test framework is three files: a single C file and a 14 Unity was designed to be cross platform. It works hard to stick with C standards 16 rules. Unity has been used with many compilers, including GCC, IAR, Clang, 23 #### Unity Assertions reference 26 Unity. This is going to be your unit testing bread and butter. You'll spend more 27 time with assertions than any other part of Unity. 30 #### Unity Assertions Cheat Sheet 34 familiarize yourself with Unity's options. [all …]
|
| D | UnityConfigurationGuide.md | 1 # Unity Configuration Guide 11 Unity is designed to run on almost anything that is targeted by a C compiler. It 17 All of Unity's configuration options are `#defines`. Most of these are simple 40 Unity will rely on `unity_config.h` for any further definitions it may need. 53 certainly not every compiler you are likely to encounter. Therefore, Unity has a 60 The first thing that Unity does to guess your types is check `stdint.h`. 61 This file includes defines like `UINT_MAX` that Unity can make use of to 65 That way, Unity will know to skip the inclusion of this file and you won't 76 want Unity to check this file either, define this to make it skip the inclusion. 121 Unity will automatically include 64-bit support if it auto-detects it, or if [all …]
|
| D | UnityAssertionsReference.md | 1 # Unity Assertions Reference 9 - Unity is mainly a rich collection of assertions and the support to gather up 11 - The structure of Unity allows you to easily separate test assertions from 13 - Unity's assertions: 20 ### Unity Is Several Things But Mainly It's Assertions 22 One way to think of Unity is simply as a rich collection of assertions you can 24 Unity provides a framework to easily organize and execute those assertions in 45 code in the way Unity facilitates. 48 ### Unity's Assertions: Helpful Messages _and_ Free Source Code Documentation 55 That's what Unity's collection of assertions do - capture context to give you [all …]
|
| /third_party/unity/docs/ |
| D | UnityGettingStartedGuide.md | 1 # Unity - Getting Started 9 Unity is a unit test framework. The goal has been to keep it small and 10 functional. The core Unity test framework is three files: a single C file and a 14 Unity was designed to be cross-platform. It works hard to stick with C standards 16 rules. Unity has been used with many compilers, including GCC, IAR, Clang, 23 #### Unity Assertions reference 26 Unity. This is going to be your unit testing bread and butter. You'll spend more 27 time with assertions than any other part of Unity. 30 #### Unity Assertions Cheat Sheet 34 familiarize yourself with Unity's options. [all …]
|
| D | UnityConfigurationGuide.md | 1 # Unity Configuration Guide 11 Unity is designed to run on almost anything that is targeted by a C compiler. It 17 All of Unity's configuration options are `#defines`. Most of these are simple 40 Unity will rely on `unity_config.h` for any further definitions it may need. 43 test itself. These defines need to take effect where ever unity.h is included. 45 unity.c when it's compiled. 57 certainly not every compiler you are likely to encounter. Therefore, Unity has a 64 The first thing that Unity does to guess your types is check `stdint.h`. 65 This file includes defines like `UINT_MAX` that Unity can use to 69 That way, Unity will know to skip the inclusion of this file and you won't [all …]
|
| D | UnityAssertionsReference.md | 1 # Unity Assertions Reference 9 - Unity is mainly a rich collection of assertions and the support to gather up 11 - The structure of Unity allows you to easily separate test assertions from 13 - Unity's assertions: 20 ### Unity Is Several Things But Mainly It's Assertions 22 One way to think of Unity is simply as a rich collection of assertions you can 24 Unity provides a framework to easily organize and execute those assertions in 45 code in the way Unity facilitates. 48 ### Unity's Assertions: Helpful Messages _and_ Free Source Code Documentation 55 That's what Unity's collection of assertions do - capture context to give you [all …]
|
| D | UnityHelperScriptsGuide.md | 1 # Unity Helper Scripts 6 The Unity project includes a couple of Ruby scripts for making your life just a tad 59 Conveniently, this YAML file is of the same format as that used by Unity and 72 :unity: 138 suite. The linker will look for this symbol and fall back to a Unity-provided 152 back to a Unity-provided stub if it is not found. 170 Unity automatically generates calls to Init, Verify and Destroy for every file 172 with the given mock suffix, file extension not included. By default, Unity 212 A Unity test file contains one or more test case functions. Each test case can 226 Ceedling build tool project (ceedling.sourceforge.net) that works with Unity and [all …]
|
| /third_party/cJSON/tests/unity/test/tests/ |
| D | testparameterized.c | 2 Unity Project - A Test Framework for C 9 #include "unity.h" 21 Unity.CurrentTestFailed = (Unity.CurrentTestFailed != 0) ? 0 : 1; \ 22 if (Unity.CurrentTestFailed == 1) { \ 24 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ 26 UnityPrint(Unity.CurrentTestName); \ 33 Unity.CurrentTestFailed = (Unity.CurrentTestIgnored != 0) ? 0 : 1; \ 34 Unity.CurrentTestIgnored = 0; \ 35 if (Unity.CurrentTestFailed == 1) { \ 37 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ [all …]
|
| /third_party/unity/test/ |
| D | Makefile | 25 SRC1 = ../src/unity.c tests/test_unity_arrays.c build/test_unity_arraysRunner.c 26 SRC2 = ../src/unity.c tests/test_unity_core.c build/test_unity_coreRunner.c 27 SRC3 = ../src/unity.c tests/test_unity_doubles.c build/test_unity_doublesRunner.c 28 SRC4 = ../src/unity.c tests/test_unity_floats.c build/test_unity_floatsRunner.c 29 SRC5 = ../src/unity.c tests/test_unity_integers.c build/test_unity_integersRunner.c 30 SRC6 = ../src/unity.c tests/test_unity_integers_64.c build/test_unity_integers_64Runner.c 31 SRC7 = ../src/unity.c tests/test_unity_memory.c build/test_unity_memoryRunner.c 32 SRC8 = ../src/unity.c tests/test_unity_strings.c build/test_unity_stringsRunner.c 48 gcov unity.c | head -3 49 grep '###' $(BUILD_DIR)/unity.c.gcov -C2 || true [all …]
|
| /third_party/unity/test/tests/ |
| D | test_unity_parameterized.c | 2 Unity Project - A Test Framework for C 9 #include "unity.h" 24 Unity.CurrentTestFailed = (Unity.CurrentTestFailed != 0) ? 0 : 1; \ 25 if (Unity.CurrentTestFailed == 1) { \ 27 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ 29 UnityPrint(Unity.CurrentTestName); \ 36 Unity.CurrentTestFailed = (Unity.CurrentTestIgnored != 0) ? 0 : 1; \ 37 Unity.CurrentTestIgnored = 0; \ 38 if (Unity.CurrentTestFailed == 1) { \ 40 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ [all …]
|
| D | testparameterized.c | 2 Unity Project - A Test Framework for C 9 #include "unity.h" 24 Unity.CurrentTestFailed = (Unity.CurrentTestFailed != 0) ? 0 : 1; \ 25 if (Unity.CurrentTestFailed == 1) { \ 27 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ 29 UnityPrint(Unity.CurrentTestName); \ 36 Unity.CurrentTestFailed = (Unity.CurrentTestIgnored != 0) ? 0 : 1; \ 37 Unity.CurrentTestIgnored = 0; \ 38 if (Unity.CurrentTestFailed == 1) { \ 40 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ [all …]
|
| D | self_assessment_utils.h | 26 Unity.CurrentTestFailed = (Unity.CurrentTestFailed == 1) ? 0 : 1; \ 27 if (Unity.CurrentTestFailed == 1) { \ 29 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ 31 UnityPrint(Unity.CurrentTestName); \ 39 Unity.CurrentTestFailed = (Unity.CurrentTestIgnored == 1) ? 0 : 1; \ 40 Unity.CurrentTestIgnored = 0; \ 41 if (Unity.CurrentTestFailed == 1) { \ 43 UnityPrintNumberUnsigned(Unity.CurrentTestLineNumber); \ 45 UnityPrint(Unity.CurrentTestName); \
|
| D | test_unity_core.c | 2 Unity Project - A Test Framework for C 7 #include "unity.h" 29 if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0)) in tearDown() 39 * test breaks, go look at the initialization of the Unity global variable in testUnitySizeInitializationReminder() 40 * in unity.c and make sure we're filling in the proper fields. */ in testUnitySizeInitializationReminder() 42 "the initialization of the Unity symbol in unity.c is " in testUnitySizeInitializationReminder() 91 TEST_ASSERT_EQUAL_MESSAGE(sizeof(_Expected_Unity), sizeof(Unity), message); in testUnitySizeInitializationReminder() 151 TEST_ASSERT_EQUAL_INT(0U, Unity.TestFailures); in testPreviousPass() 277 Unity.CurrentTestFailed = 0; in testProtection() 295 UNITY_UINT savedFailures = Unity.TestFailures; in testFailureCountIncrementsAndIsReturnedAtEnd() [all …]
|
| /third_party/cJSON/tests/ |
| D | CMakeLists.txt | 2 add_library(unity STATIC unity/src/unity.c) target 4 # Disable -Werror for Unity 9 target_compile_options(unity PRIVATE "-Wno-error") 12 # Disable -fvisibility=hidden for Unity 17 target_compile_options(unity PRIVATE "-fvisibility=default") 20 …# Disable -fsanitize=float-divide-by-zero for Unity (GCC bug on x86 https://gcc.gnu.org/bugzilla/s… 25 target_compile_options(unity PRIVATE "-fno-sanitize=float-divide-by-zero") 28 # Disable -Wswitch-enum for Unity 33 target_compile_options(unity PRIVATE "-Wno-switch-enum") 79 target_link_libraries("${unity_test}" "${CJSON_LIB}" unity) [all …]
|
| /third_party/unity/extras/fixture/src/ |
| D | unity_fixture.c | 1 /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 3 * Unity Project - A Test Framework for C 23 UnityPrint("Unity test run "); in announceTestRun() 46 return (int)Unity.TestFailures; in UnityMain() 77 Unity.TestFile = file; in UnityTestRunner() 78 Unity.CurrentTestName = printableName; in UnityTestRunner() 79 Unity.CurrentTestLineNumber = line; in UnityTestRunner() 84 Unity.CurrentTestName = NULL; in UnityTestRunner() 96 Unity.NumberOfTests++; in UnityTestRunner() 122 Unity.NumberOfTests++; in UnityIgnoreTest() [all …]
|
| /third_party/cJSON/tests/unity/extras/fixture/src/ |
| D | unity_fixture.c | 1 /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 3 * Unity Project - A Test Framework for C 25 UnityPrint("Unity test run "); in announceTestRun() 48 return (int)Unity.TestFailures; in UnityMain() 79 Unity.TestFile = file; in UnityTestRunner() 80 Unity.CurrentTestName = printableName; in UnityTestRunner() 81 Unity.CurrentTestLineNumber = line; in UnityTestRunner() 88 Unity.CurrentTestName = NULL; in UnityTestRunner() 92 Unity.NumberOfTests++; in UnityTestRunner() 108 if (!Unity.CurrentTestFailed) in UnityTestRunner() [all …]
|
| /third_party/unity/examples/ |
| D | unity_config.h | 1 /* Unity Configuration 2 * As of May 11th, 2016 at ThrowTheSwitch/Unity commit 837c529 4 * See Also: Unity/docs/UnityConfigurationGuide.pdf 6 * Unity is designed to run on almost anything that is targeted by a C compiler. 12 * All of Unity's configuration options are `#defines`. Most of these are simple 33 * `UNITY_INCLUDE_CONFIG_H` and Unity will rely on `unity_config.h` for any 47 * encounter. Therefore, Unity has a number of features for helping to adjust 54 * want Unity to check this file, define this to make it skip the inclusion. 55 * Unity looks at UINT_MAX & ULONG_MAX, which were available since C89. 59 /* The second thing that Unity does to guess your types is check `stdint.h`. [all …]
|
| /third_party/cJSON/tests/unity/examples/ |
| D | unity_config.h | 1 /* Unity Configuration 2 * As of May 11th, 2016 at ThrowTheSwitch/Unity commit 837c529 4 * See Also: Unity/docs/UnityConfigurationGuide.pdf 6 * Unity is designed to run on almost anything that is targeted by a C compiler. 12 * All of Unity's configuration options are `#defines`. Most of these are simple 33 * `UNITY_INCLUDE_CONFIG_H` and Unity will rely on `unity_config.h` for any 47 * encounter. Therefore, Unity has a number of features for helping to adjust 54 * want Unity to check this file, define this to make it skip the inclusion. 55 * Unity looks at UINT_MAX & ULONG_MAX, which were available since C89. 59 /* The second thing that Unity does to guess your types is check `stdint.h`. [all …]
|
| /third_party/cJSON/tests/unity/src/ |
| D | unity.c | 2 Unity Project - A Test Framework for C 8 #include "unity.h" 17 #define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; TEST_ABORT(); } 18 #define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; TEST_ABORT(); } 19 #define RETURN_IF_FAIL_OR_IGNORE if (Unity.CurrentTestFailed || Unity.CurrentTestIgnored) return 21 struct UNITY_STORAGE_T Unity; variable 56 const char UnityStrErrFloat[] = "Unity Floating Point Disabled"; 57 const char UnityStrErrDouble[] = "Unity Double Precision Disabled"; 58 const char UnityStrErr64[] = "Unity 64-bit Support Disabled"; 363 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin() [all …]
|
| /third_party/unity/src/ |
| D | unity.c | 2 Unity Project - A Test Framework for C 7 #include "unity.h" 22 #define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; UNITY_OUTPUT_FLUSH(); TEST_ABORT(); } 23 #define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; UNITY_OUTPUT_FLUSH(); TEST_ABORT(); } 24 #define RETURN_IF_FAIL_OR_IGNORE if (Unity.CurrentTestFailed || Unity.CurrentTestIgnored) TEST_ABOR… 26 struct UNITY_STORAGE_T Unity; variable 62 const char PROGMEM UnityStrErrShorthand[] = "Unity Shorthand Support Disabled"; 63 const char PROGMEM UnityStrErrFloat[] = "Unity Floating Point Disabled"; 64 const char PROGMEM UnityStrErrDouble[] = "Unity Double Precision Disabled"; 65 const char PROGMEM UnityStrErr64[] = "Unity 64-bit Support Disabled"; [all …]
|
| /third_party/unity/extras/fixture/ |
| D | readme.md | 1 # Unity Fixtures 3 This Framework is an optional add-on to Unity. By including unity_framework.h in place of unity.h, 4 you may now work with Unity in a manner similar to CppUTest. This framework adds the concepts of 8 Test Driven Development, or those coming to Unity from CppUTest. We should note that using this 9 framework glosses over some of the features of Unity, and makes it more difficult 21 By default the test executables produced by Unity Fixtures run all tests once, but the behavior can
|
| /third_party/cJSON/tests/unity/extras/fixture/test/ |
| D | unity_fixture_Test.c | 1 /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 3 * Unity Project - A Test Framework for C 141 UNITY_UINT savedFails = Unity.TestFailures; in TEST() 142 UNITY_UINT savedIgnores = Unity.TestIgnores; in TEST() 144 Unity.CurrentTestFailed = 1; in TEST() 146 Unity.CurrentTestIgnored = 1; in TEST() 149 TEST_ASSERT_EQUAL(savedFails + 1, Unity.TestFailures); in TEST() 150 TEST_ASSERT_EQUAL(savedIgnores + 1, Unity.TestIgnores); in TEST() 151 Unity.TestFailures = savedFails; in TEST() 152 Unity.TestIgnores = savedIgnores; in TEST() [all …]
|
| /third_party/unity/extras/fixture/test/ |
| D | unity_fixture_Test.c | 1 /* Copyright (c) 2010 James Grenning and Contributed to Unity Project 3 * Unity Project - A Test Framework for C 75 UNITY_UINT savedFails = Unity.TestFailures; in TEST() 76 UNITY_UINT savedIgnores = Unity.TestIgnores; in TEST() 77 Unity.CurrentTestFailed = 1; in TEST() 79 Unity.CurrentTestIgnored = 1; in TEST() 81 TEST_ASSERT_EQUAL(savedFails + 1, Unity.TestFailures); in TEST() 82 TEST_ASSERT_EQUAL(savedIgnores + 1, Unity.TestIgnores); in TEST() 83 Unity.TestFailures = savedFails; in TEST() 84 Unity.TestIgnores = savedIgnores; in TEST() [all …]
|
| /third_party/cJSON/tests/unity/extras/fixture/ |
| D | readme.txt | 1 Copyright (c) 2010 James Grenning and Contributed to Unity Project 3 Unity Project - A Test Framework for C 7 This Framework is an optional add-on to Unity. By including unity_framework.h in place of unity.h, 8 you may now work with Unity in a manner similar to CppUTest. This framework adds the concepts of
|
| /third_party/unity/ |
| D | CMakeLists.txt | 14 # Read src/unity.h file and get project version from it 15 set(UNITY_HEADER "src/unity.h") 38 project(unity project 45 option(UNITY_EXTENSION_FIXTURE "Compiles Unity with the \"fixture\" extension." OFF) 46 option(UNITY_EXTENSION_MEMORY "Compiles Unity with the \"memory\" extension." OFF) 52 message(STATUS "Unity: Bulding with the fixture extension.") 56 message(STATUS "Unity: Bulding with the memory extension.") 69 src/unity.c 84 src/unity.h
|