Home
last modified time | relevance | path

Searched refs:Unity (Results 1 – 25 of 158) sorted by relevance

1234567

/third_party/cJSON/tests/unity/test/tests/
Dtestparameterized.c21 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); \
39 UnityPrint(Unity.CurrentTestName); \
57 if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0)) in tearDown()
/third_party/unity/test/tests/
Dtest_unity_parameterized.c24 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); \
42 UnityPrint(Unity.CurrentTestName); \
68 if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0)) in tearDown()
Dtestparameterized.c24 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); \
42 UnityPrint(Unity.CurrentTestName); \
68 if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0)) in tearDown()
Dself_assessment_utils.h26 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); \
Dtest_unity_core.c29 if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0)) in tearDown()
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()
296 Unity.CurrentTestFailed = 1; in testFailureCountIncrementsAndIsReturnedAtEnd()
302 TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures); in testFailureCountIncrementsAndIsReturnedAtEnd()
312 Unity.TestFailures--; in testFailureCountIncrementsAndIsReturnedAtEnd()
/third_party/cJSON/tests/unity/src/
Dunity.c17 #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
363 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin()
370 UnityTestResultsBegin(Unity.TestFile, line); in UnityTestResultsFailBegin()
378 if (Unity.CurrentTestIgnored) in UnityConcludeTest()
380 Unity.TestIgnores++; in UnityConcludeTest()
382 else if (!Unity.CurrentTestFailed) in UnityConcludeTest()
384 UnityTestResultsBegin(Unity.TestFile, Unity.CurrentTestLineNumber); in UnityConcludeTest()
[all …]
/third_party/unity/src/
Dunity.c22 #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
499 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin()
509 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin()
518 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin()
525 UnityPrint(Unity.CurrentTestName); in UnityTestResultsBegin()
535 UnityTestResultsBegin(Unity.TestFile, line); in UnityTestResultsFailBegin()
543 if (Unity.CurrentTestIgnored) in UnityConcludeTest()
[all …]
/third_party/unity/extras/fixture/src/
Dunity_fixture.c46 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()
123 Unity.TestIgnores++; in UnityIgnoreTest()
286 if (Unity.CurrentTestIgnored) in UnityConcludeFixtureTest()
288 Unity.TestIgnores++; in UnityConcludeFixtureTest()
[all …]
/third_party/cJSON/tests/unity/extras/fixture/src/
Dunity_fixture.c48 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()
119 Unity.NumberOfTests++; in UnityIgnoreTest()
120 Unity.TestIgnores++; in UnityIgnoreTest()
149 UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "This test leaks!"); in UnityMalloc_EndTest()
[all …]
/third_party/grpc/examples/csharp/HelloworldUnity/
DREADME.md1 gRPC C# on Unity
6 Support of the Unity platform is currently experimental.
11 - Unity 2018.3.5f1
17 that contains gRPC C# for Unity. Unzip it under `Assets/Plugins` directory.
18 - Open the `HelloworldUnity.sln` in Unity Editor.
19 - Build using Unity Editor.
/third_party/cJSON/tests/unity/extras/fixture/test/
Dunity_fixture_Test.c141 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()
304 UNITY_UINT saved = Unity.NumberOfTests; in TEST()
307 TEST_ASSERT_EQUAL(saved, Unity.NumberOfTests); in TEST()
[all …]
/third_party/unity/extras/fixture/test/
Dunity_fixture_Test.c75 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()
236 UNITY_UINT saved = Unity.NumberOfTests; in TEST()
239 TEST_ASSERT_EQUAL(saved, Unity.NumberOfTests); in TEST()
/third_party/cJSON/tests/unity/docs/
DUnityGettingStartedGuide.md1 # 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 …]
/third_party/unity/docs/
DUnityGettingStartedGuide.md1 # 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 …]
/third_party/grpc/src/csharp/experimental/
DREADME.md25 # Unity chapter
27 gRPC C# now has experimental support for Unity. Please try using gRPC with
28 Unity and provide feedback!
30 How to test gRPC in a Unity project
32 1. Create a Unity project that targets .NET 4.x Equivalent (Edit -> Project Settings -> Player -> C…
37 3. Extract the `.zip` file in the `Assets` directory in your Unity project
39 4. Unity IDE will pick up all the bundled files and add them to project automatically.
/third_party/cJSON/tests/unity/extras/fixture/
Dreadme.txt1 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/extras/fixture/
Dreadme.md1 # 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/unity/extras/memory/test/
Dunity_memory_Test.c130 memcpy(TestAbortFrame, Unity.AbortFrame, sizeof(jmp_buf)); \
136 memcpy(Unity.AbortFrame, TestAbortFrame, sizeof(jmp_buf)); \
173 Unity.CurrentTestFailed = 0; in test_DetectsLeak()
193 Unity.CurrentTestFailed = 0; in test_BufferOverrunFoundDuringFree()
212 Unity.CurrentTestFailed = 0; in test_BufferOverrunFoundDuringRealloc()
232 Unity.CurrentTestFailed = 0; in test_BufferGuardWriteFoundDuringFree()
251 Unity.CurrentTestFailed = 0; in test_BufferGuardWriteFoundDuringRealloc()
/third_party/unity/test/testdata/
DtestRunnerGeneratorWithMocks.c191 int passesOrIgnores = (int)(Unity.NumberOfTests - Unity.TestFailures); in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
192 …TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests, mockMock_Init_Counter, "Mock Init Should Be … in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
194 …TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests - 1, mockMock_Destroy_Counter, "Mock Destroy Should … in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
/third_party/cJSON/tests/unity/test/testdata/
DtestRunnerGeneratorWithMocks.c186 int passesOrIgnores = (int)(Unity.NumberOfTests - Unity.TestFailures); in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
187 …TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests, mockMock_Init_Counter, "Mock Init Should Be … in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
189 …TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests - 1, mockMock_Destroy_Counter, "Mock Destroy Should … in test_ShouldCallMockInitAndVerifyFunctionsForEachTest()
/third_party/grpc/src/csharp/unitypackage/
DREADME.md1 # Scripts for building gRPC C# package for Unity
4 of internal tooling to automate building of the gRPC C# package for Unity.
9 …Note: The `.meta` file were created by the Unity IDE by manually adding the assemblies/native libr…
10 …to a Unity project and configuring their target plaform/architecture in the UI (these setting get …
/third_party/cJSON/tests/unity/examples/example_1/test/test_runners/
DTestProductionCode2_Runner.c6 Unity.CurrentTestName = #TestFunc; \
7 Unity.CurrentTestLineNumber = TestLineNum; \
8 Unity.NumberOfTests++; \
/third_party/unity/examples/example_1/test/test_runners/
DTestProductionCode2_Runner.c6 Unity.CurrentTestName = #TestFunc; \
7 Unity.CurrentTestLineNumber = TestLineNum; \
8 Unity.NumberOfTests++; \
/third_party/unity/examples/example_4/test/test_runners/
DTestProductionCode2_Runner.c6 Unity.CurrentTestName = #TestFunc; \
7 Unity.CurrentTestLineNumber = TestLineNum; \
8 Unity.NumberOfTests++; \
/third_party/cJSON/tests/unity/test/expectdata/
Dtestsample_def.c6 Unity.CurrentTestName = #TestFunc; \
7 Unity.CurrentTestLineNumber = TestLineNum; \
8 Unity.NumberOfTests++; \

1234567