ID
int64
1
142k
Language
stringclasses
1 value
Repository Name
stringclasses
101 values
File Name
stringlengths
3
101
File Path in Repository
stringlengths
6
231
Code
stringlengths
1
11.9M
101
cpp
cpputest
ClassNameCIoDriver.h
scripts/templates/ClassNameCIoDriver.h
#ifndef D_ClassName_H #define D_ClassName_H /********************************************************** * * ClassName is responsible for ... * **********************************************************/ #include <stdint.h> void ClassName_Create(void); void ClassName_Destroy(void); #endif /* D_FakeClassName_H */...
102
cpp
cpputest
ProjectBuildTime.cpp
scripts/templates/ProjectTemplate/src/util/ProjectBuildTime.cpp
#include "ProjectBuildTime.h" ProjectBuildTime::ProjectBuildTime() : dateTime(__DATE__ " " __TIME__) { } ProjectBuildTime::~ProjectBuildTime() { } const char* ProjectBuildTime::GetDateTime() { return dateTime; }
103
cpp
cpputest
AllTests.cpp
scripts/templates/ProjectTemplate/tests/AllTests.cpp
#include "CppUTest/CommandLineTestRunner.h" int main(int ac, char** av) { return CommandLineTestRunner::RunAllTests(ac, av); }
104
cpp
cpputest
ProjectBuildTimeTest.cpp
scripts/templates/ProjectTemplate/tests/util/ProjectBuildTimeTest.cpp
#include "CppUTest/TestHarness.h" #include "ProjectBuildTime.h" TEST_GROUP(ProjectBuildTime) { ProjectBuildTime* projectBuildTime; void setup() { projectBuildTime = new ProjectBuildTime(); } void teardown() { delete projectBuildTime; } }; TEST(ProjectBuildTime, Create) { CHECK(0 != projectBui...
105
cpp
cpputest
ProjectBuildTime.h
scripts/templates/ProjectTemplate/include/util/ProjectBuildTime.h
#ifndef D_ProjectBuildTime_H #define D_ProjectBuildTime_H /////////////////////////////////////////////////////////////////////////////// // // ProjectBuildTime is responsible for recording and reporting when // this project library was built // ///////////////////////////////////////////////////////////////////////...
106
cpp
cpputest
main.cpp
platforms_examples/armcc/AT91SAM7A3/tests/main.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
107
cpp
cpputest
main.cpp
platforms_examples/armcc/LPC1768/tests/main.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
108
cpp
cpputest
test1.cpp
platforms_examples/armcc/LPC1833/tests/test1.cpp
#include "CppUTest/TestHarness.h" TEST_GROUP(start) { }; TEST(start, first) { FAIL("Start here!"); }
109
cpp
cpputest
main.cpp
platforms_examples/armcc/LPC1833/tests/main.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
110
cpp
cpputest
TestUTestStringMacro.cpp
tests/CppUTest/TestUTestStringMacro.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
111
cpp
cpputest
TestRegistryTest.cpp
tests/CppUTest/TestRegistryTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
112
cpp
cpputest
SetPluginTest.cpp
tests/CppUTest/SetPluginTest.cpp
#include "CppUTest/TestHarness.h" #include "CppUTest/TestRegistry.h" #include "CppUTest/TestOutput.h" #include "CppUTest/TestPlugin.h" static void orig_func1() { } static void stub_func1() { } static void orig_func2() { } static void stub_func2() { } static void (*fp1)(); static void (*fp2)(); TEST_GROUP(SetPoint...
113
cpp
cpputest
PreprocessorTest.cpp
tests/CppUTest/PreprocessorTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
114
cpp
cpputest
AllocationInCFile.h
tests/CppUTest/AllocationInCFile.h
#ifndef ALLOCATIONINCFILE_H #define ALLOCATIONINCFILE_H #ifdef __cplusplus extern "C" { #endif extern char* mallocAllocation(void); extern char* strdupAllocation(void); extern char* strndupAllocation(void); extern void freeAllocation(void* memory); extern void freeAllocationWithoutMacro(void* memory); #ifdef __cplus...
115
cpp
cpputest
AllTests.cpp
tests/CppUTest/AllTests.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
116
cpp
cpputest
AllTests.h
tests/CppUTest/AllTests.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
117
cpp
cpputest
DummyMemoryLeakDetector.h
tests/CppUTest/DummyMemoryLeakDetector.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
118
cpp
cpputest
TestOutputTest.cpp
tests/CppUTest/TestOutputTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
119
cpp
cpputest
CompatabilityTests.cpp
tests/CppUTest/CompatabilityTests.cpp
#include "CppUTest/TestHarness.h" #if CPPUTEST_USE_STD_CPP_LIB #include <memory> TEST_GROUP(StandardCppLibrary) { }; #if defined(__cplusplus) && __cplusplus >= 201402L TEST(StandardCppLibrary, UniquePtrConversationToBool) { auto const aNull = std::unique_ptr<int>(NULLPTR); CHECK_FALSE(aNull); auto co...
120
cpp
cpputest
AllocLetTestFreeTest.cpp
tests/CppUTest/AllocLetTestFreeTest.cpp
#include "CppUTest/StandardCLibrary.h" extern "C" { #include "AllocLetTestFree.h" } #include "CppUTest/TestHarness.h" #if CPPUTEST_USE_STD_C_LIB /* * This test makes sure that memory leak malloc macros are forced into .cpp and .c files */ TEST_GROUP(AllocLetTestFree) { AllocLetTestFree allocLetTestFree; ...
121
cpp
cpputest
PluginTest.cpp
tests/CppUTest/PluginTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
122
cpp
cpputest
TestHarness_cTest.cpp
tests/CppUTest/TestHarness_cTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
123
cpp
cpputest
TestFailureTest.cpp
tests/CppUTest/TestFailureTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
124
cpp
cpputest
AllocationInCppFile.cpp
tests/CppUTest/AllocationInCppFile.cpp
/* This file is for emulating allocations in a C++ file. * It is used simulating the use of the memory leak detector on production code in C++ */ #undef new #include "CppUTest/MemoryLeakDetectorNewMacros.h" #include "AllocationInCppFile.h" char* newAllocation() { return new char; } char* newArrayAllocation() { ...
125
cpp
cpputest
AllocLetTestFree.h
tests/CppUTest/AllocLetTestFree.h
#ifndef D_AllocLetTestFree_H #define D_AllocLetTestFree_H #ifdef __cplusplus extern "C" { #endif typedef struct AllocLetTestFreeStruct * AllocLetTestFree; AllocLetTestFree AllocLetTestFree_Create(void); void AllocLetTestFree_Destroy(AllocLetTestFree); #ifdef __cplusplus } #endif #endif /* D_FakeAllocLetTestFree...
126
cpp
cpputest
JUnitOutputTest.cpp
tests/CppUTest/JUnitOutputTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
127
cpp
cpputest
AllocationInCppFile.h
tests/CppUTest/AllocationInCppFile.h
#ifndef ALLOCATIONINCPPFILE_H #define ALLOCATIONINCPPFILE_H char* newAllocation(); char* newArrayAllocation(); char* newAllocationWithoutMacro(); char* newArrayAllocationWithoutMacro(); #if CPPUTEST_HAVE_EXCEPTIONS class ClassThatThrowsAnExceptionInTheConstructor { public: CPPUTEST_NORETURN ClassThatThrowsAnExc...
128
cpp
cpputest
TestInstallerTest.cpp
tests/CppUTest/TestInstallerTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
129
cpp
cpputest
TestFilterTest.cpp
tests/CppUTest/TestFilterTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
130
cpp
cpputest
MemoryLeakWarningTest.cpp
tests/CppUTest/MemoryLeakWarningTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
131
cpp
cpputest
TeamCityOutputTest.cpp
tests/CppUTest/TeamCityOutputTest.cpp
#include "CppUTest/TestHarness.h" #include "CppUTest/TeamCityTestOutput.h" #include "CppUTest/PlatformSpecificFunctions.h" class TeamCityOutputToBuffer : public TeamCityTestOutput { public: explicit TeamCityOutputToBuffer() { } virtual ~TeamCityOutputToBuffer() CPPUTEST_DESTRUCTOR_OVERRIDE { }...
132
cpp
cpputest
TestFailureNaNTest.cpp
tests/CppUTest/TestFailureNaNTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
133
cpp
cpputest
MemoryOperatorOverloadTest.cpp
tests/CppUTest/MemoryOperatorOverloadTest.cpp
#include "CppUTest/TestHarness.h" #include "CppUTest/TestMemoryAllocator.h" #include "CppUTest/MemoryLeakDetector.h" #include "CppUTest/TestOutput.h" #include "CppUTest/TestRegistry.h" #include "CppUTest/PlatformSpecificFunctions.h" #include "CppUTest/TestTestingFixture.h" #include "AllocationInCppFile.h" #include "Cp...
134
cpp
cpputest
CheatSheetTest.cpp
tests/CppUTest/CheatSheetTest.cpp
static void (*real_one) (); static void stub(){} /* in CheatSheetTest.cpp */ #include "CppUTest/TestHarness.h" /* Declare TestGroup with name CheatSheet */ TEST_GROUP(CheatSheet) { /* declare a setup method for the test group. Optional. */ void setup() CPPUTEST_OVERRIDE { /* Set method real_one to stub. Auto...
135
cpp
cpputest
UtestTest.cpp
tests/CppUTest/UtestTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
136
cpp
cpputest
UtestPlatformTest.cpp
tests/CppUTest/UtestPlatformTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
137
cpp
cpputest
CommandLineArgumentsTest.cpp
tests/CppUTest/CommandLineArgumentsTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
138
cpp
cpputest
SimpleMutexTest.cpp
tests/CppUTest/SimpleMutexTest.cpp
/* * Copyright (c) 2014, Michael Feathers, James Grenning, Bas Vodde and Chen YewMing * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the ...
139
cpp
cpputest
TestResultTest.cpp
tests/CppUTest/TestResultTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
140
cpp
cpputest
MemoryLeakDetectorTest.cpp
tests/CppUTest/MemoryLeakDetectorTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
141
cpp
cpputest
SimpleStringCacheTest.cpp
tests/CppUTest/SimpleStringCacheTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
142
cpp
cpputest
SimpleStringTest.cpp
tests/CppUTest/SimpleStringTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
143
cpp
cpputest
TestUTestMacro.cpp
tests/CppUTest/TestUTestMacro.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
144
cpp
cpputest
CommandLineTestRunnerTest.cpp
tests/CppUTest/CommandLineTestRunnerTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
145
cpp
cpputest
TestMemoryAllocatorTest.cpp
tests/CppUTest/TestMemoryAllocatorTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
146
cpp
cpputest
DummyMemoryLeakDetector.cpp
tests/CppUTest/DummyMemoryLeakDetector.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
147
cpp
cpputest
GTest1Test.cpp
tests/CppUTestExt/GTest1Test.cpp
/* * Copyright (c) 2011, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
148
cpp
cpputest
MockCallTest.cpp
tests/CppUTestExt/MockCallTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
149
cpp
cpputest
AllTests.cpp
tests/CppUTestExt/AllTests.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
150
cpp
cpputest
GMockTest.cpp
tests/CppUTestExt/GMockTest.cpp
/* * Copyright (c) 2011, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
151
cpp
cpputest
MockSupport_cTest.cpp
tests/CppUTestExt/MockSupport_cTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
152
cpp
cpputest
MockSupport_cTestCFile.h
tests/CppUTestExt/MockSupport_cTestCFile.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
153
cpp
cpputest
MockReturnValueTest.cpp
tests/CppUTestExt/MockReturnValueTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
154
cpp
cpputest
MemoryReportFormatterTest.cpp
tests/CppUTestExt/MemoryReportFormatterTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
155
cpp
cpputest
OrderedTestTest.cpp
tests/CppUTestExt/OrderedTestTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
156
cpp
cpputest
MockNamedValueTest.cpp
tests/CppUTestExt/MockNamedValueTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
157
cpp
cpputest
MockHierarchyTest.cpp
tests/CppUTestExt/MockHierarchyTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
158
cpp
cpputest
MockPluginTest.cpp
tests/CppUTestExt/MockPluginTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
159
cpp
cpputest
ExpectedFunctionsListTest.cpp
tests/CppUTestExt/ExpectedFunctionsListTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
160
cpp
cpputest
MockComparatorCopierTest.cpp
tests/CppUTestExt/MockComparatorCopierTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
161
cpp
cpputest
CodeMemoryReporterTest.cpp
tests/CppUTestExt/CodeMemoryReporterTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
162
cpp
cpputest
MemoryReporterPluginTest.cpp
tests/CppUTestExt/MemoryReporterPluginTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
163
cpp
cpputest
IEEE754PluginTest.cpp
tests/CppUTestExt/IEEE754PluginTest.cpp
/* * Copyright (c) 2015, Michael Feathers, James Grenning, Bas Vodde * and Arnd R. Strube. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain th...
164
cpp
cpputest
IEEE754PluginTest_c.h
tests/CppUTestExt/IEEE754PluginTest_c.h
/* * Copyright (c) 2015, Michael Feathers, James Grenning, Bas Vodde * and Arnd R. Strube. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain th...
165
cpp
cpputest
MemoryReportAllocatorTest.cpp
tests/CppUTestExt/MemoryReportAllocatorTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
166
cpp
cpputest
MockExpectedCallTest.cpp
tests/CppUTestExt/MockExpectedCallTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
167
cpp
cpputest
OrderedTestTest.h
tests/CppUTestExt/OrderedTestTest.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
168
cpp
cpputest
MockSupportTest.cpp
tests/CppUTestExt/MockSupportTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
169
cpp
cpputest
MockActualCallTest.cpp
tests/CppUTestExt/MockActualCallTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
170
cpp
cpputest
MockFailureReporterForTest.cpp
tests/CppUTestExt/MockFailureReporterForTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
171
cpp
cpputest
MockFailureReporterForTest.h
tests/CppUTestExt/MockFailureReporterForTest.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
172
cpp
cpputest
MockFailureTest.cpp
tests/CppUTestExt/MockFailureTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
173
cpp
cpputest
GTest2ConvertorTest.cpp
tests/CppUTestExt/GTest2ConvertorTest.cpp
/* * Copyright (c) 2011, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
174
cpp
cpputest
MockFakeLongLong.cpp
tests/CppUTestExt/MockFakeLongLong.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
175
cpp
cpputest
MockStrictOrderTest.cpp
tests/CppUTestExt/MockStrictOrderTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
176
cpp
cpputest
MockParameterTest.cpp
tests/CppUTestExt/MockParameterTest.cpp
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyrigh...
177
cpp
cpputest
MockCheatSheetTest.cpp
tests/CppUTestExt/MockCheatSheetTest.cpp
/* Additional include from CppUTestExt */ #include "CppUTest/TestHarness.h" #include "CppUTestExt/MockSupport.h" /* Stubbed out product code using linker, function pointer, or overriding */ static int foo(const char* param_string, int param_int) { /* Tell CppUTest Mocking what we mock. Also return recorded value ...
178
cpp
cpputest
DummyUTestPlatform.cpp
tests/DummyUTestPlatform/DummyUTestPlatform.cpp
#include <CppUTest/PlatformSpecificFunctions.h> typedef char jmp_buf[200]; TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment() { return TestOutput::eclipse; } void (*PlatformSpecificRunTestInASeperateProcess)(UtestShell* shell, TestPlugin* plugin, TestResult* result) = NULLPTR; int (*PlatformS...
179
cpp
cpputest
MemoryLeakDetectorMallocMacros.h
include/CppUTest/MemoryLeakDetectorMallocMacros.h
/* * This file can be used to get extra debugging information about memory leaks in your production code. * It defines a preprocessor macro for malloc. This will pass additional information to the * malloc and this will give the line/file information of the memory leaks in your code. * * You can use this by inclu...
180
cpp
cpputest
Utest.h
include/CppUTest/Utest.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
181
cpp
cpputest
TeamCityTestOutput.h
include/CppUTest/TeamCityTestOutput.h
#ifndef D_TeamCityTestOutput_h #define D_TeamCityTestOutput_h #include "TestOutput.h" #include "SimpleString.h" class TeamCityTestOutput: public ConsoleTestOutput { public: TeamCityTestOutput(void); virtual ~TeamCityTestOutput(void) CPPUTEST_DESTRUCTOR_OVERRIDE; virtual void printCurrentTestStarted(const...
182
cpp
cpputest
SimpleMutex.h
include/CppUTest/SimpleMutex.h
/* * Copyright (c) 2014, Michael Feathers, James Grenning, Bas Vodde and Chen YewMing * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the a...
183
cpp
cpputest
TestFilter.h
include/CppUTest/TestFilter.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
184
cpp
cpputest
TestMemoryAllocator.h
include/CppUTest/TestMemoryAllocator.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
185
cpp
cpputest
TestPlugin.h
include/CppUTest/TestPlugin.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
186
cpp
cpputest
MemoryLeakWarningPlugin.h
include/CppUTest/MemoryLeakWarningPlugin.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
187
cpp
cpputest
PlatformSpecificFunctions.h
include/CppUTest/PlatformSpecificFunctions.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
188
cpp
cpputest
SimpleStringInternalCache.h
include/CppUTest/SimpleStringInternalCache.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
189
cpp
cpputest
TestFailure.h
include/CppUTest/TestFailure.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
190
cpp
cpputest
CppUTestConfig.h
include/CppUTest/CppUTestConfig.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
191
cpp
cpputest
MemoryLeakDetector.h
include/CppUTest/MemoryLeakDetector.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
192
cpp
cpputest
StandardCLibrary.h
include/CppUTest/StandardCLibrary.h
/* Must include this first to ensure the StandardC include in CppUTestConfig still happens at the right moment */ #include "CppUTestConfig.h" #ifndef STANDARDCLIBRARY_H_ #define STANDARDCLIBRARY_H_ #if CPPUTEST_USE_STD_C_LIB /* Needed for size_t */ #include <stddef.h> /* Sometimes the C++ library does an #undef in...
193
cpp
cpputest
TestHarness.h
include/CppUTest/TestHarness.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
194
cpp
cpputest
UtestMacros.h
include/CppUTest/UtestMacros.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
195
cpp
cpputest
CppUTestGeneratedConfig.h
include/CppUTest/CppUTestGeneratedConfig.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
196
cpp
cpputest
CommandLineTestRunner.h
include/CppUTest/CommandLineTestRunner.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
197
cpp
cpputest
TestResult.h
include/CppUTest/TestResult.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
198
cpp
cpputest
CommandLineArguments.h
include/CppUTest/CommandLineArguments.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
199
cpp
cpputest
SimpleString.h
include/CppUTest/SimpleString.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
200
cpp
cpputest
TestRegistry.h
include/CppUTest/TestRegistry.h
/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...