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 ⌀ |
|---|---|---|---|---|---|
201 | cpp | cpputest | MemoryLeakDetectorForceInclude.h | include/CppUTest/MemoryLeakDetectorForceInclude.h | // Not all toolchains support multiple force includes (namely IAR),
// so we wrap the two in a single header.
#include "MemoryLeakDetectorMallocMacros.h"
#include "MemoryLeakDetectorNewMacros.h"
|
202 | cpp | cpputest | MemoryLeakDetectorNewMacros.h | include/CppUTest/MemoryLeakDetectorNewMacros.h |
/*
* This file can be used to get extra debugging information about memory leaks in your production code.
* It defines a preprocessor macro for operator new. This will pass additional information to the
* operator new and this will give the line/file information of the memory leaks in your code.
*
* You can use t... |
203 | cpp | cpputest | TestTestingFixture.h | include/CppUTest/TestTestingFixture.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... |
204 | cpp | cpputest | JUnitTestOutput.h | include/CppUTest/JUnitTestOutput.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... |
205 | cpp | cpputest | TestHarness_c.h | include/CppUTest/TestHarness_c.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... |
206 | cpp | cpputest | PlatformSpecificFunctions_c.h | include/CppUTest/PlatformSpecificFunctions_c.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... |
207 | cpp | cpputest | TestOutput.h | include/CppUTest/TestOutput.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... |
208 | cpp | cpputest | MockFailure.h | include/CppUTestExt/MockFailure.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... |
209 | cpp | cpputest | CodeMemoryReportFormatter.h | include/CppUTestExt/CodeMemoryReportFormatter.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... |
210 | cpp | cpputest | MockSupport_c.h | include/CppUTestExt/MockSupport_c.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... |
211 | cpp | cpputest | MemoryReportAllocator.h | include/CppUTestExt/MemoryReportAllocator.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... |
212 | cpp | cpputest | GTestConvertor.h | include/CppUTestExt/GTestConvertor.h | /*
* 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... |
213 | cpp | cpputest | MockCheckedExpectedCall.h | include/CppUTestExt/MockCheckedExpectedCall.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... |
214 | cpp | cpputest | GMock.h | include/CppUTestExt/GMock.h | /*
* 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... |
215 | cpp | cpputest | MemoryReportFormatter.h | include/CppUTestExt/MemoryReportFormatter.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... |
216 | cpp | cpputest | GTestSupport.h | include/CppUTestExt/GTestSupport.h | /*
* 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... |
217 | cpp | cpputest | MockCheckedActualCall.h | include/CppUTestExt/MockCheckedActualCall.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... |
218 | cpp | cpputest | MockNamedValue.h | include/CppUTestExt/MockNamedValue.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... |
219 | cpp | cpputest | MockSupport.h | include/CppUTestExt/MockSupport.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... |
220 | cpp | cpputest | GTest.h | include/CppUTestExt/GTest.h | /*
* 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... |
221 | cpp | cpputest | MockExpectedCallsList.h | include/CppUTestExt/MockExpectedCallsList.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... |
222 | cpp | cpputest | MockActualCall.h | include/CppUTestExt/MockActualCall.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... |
223 | cpp | cpputest | IEEE754ExceptionsPlugin.h | include/CppUTestExt/IEEE754ExceptionsPlugin.h | /*
* Copyright (c) 2015, Michael Feathers, James Grenning, Bas Vodde
* and Arnd 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 the a... |
224 | cpp | cpputest | MemoryReporterPlugin.h | include/CppUTestExt/MemoryReporterPlugin.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... |
225 | cpp | cpputest | OrderedTest.h | include/CppUTestExt/OrderedTest.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... |
226 | cpp | cpputest | MockExpectedCall.h | include/CppUTestExt/MockExpectedCall.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... |
227 | cpp | cpputest | MockSupportPlugin.h | include/CppUTestExt/MockSupportPlugin.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... |
228 | cpp | cpputest | stdint.h | include/Platforms/c2000/stdint.h | /*
* Copyright (c) 2007, 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 ... |
229 | cpp | cpputest-starter-project | AllTests.cpp | tests/AllTests.cpp | #include "CppUTest/CommandLineTestRunner.h"
int main(int ac, char** av)
{
return CommandLineTestRunner::RunAllTests(ac, av);
}
|
230 | cpp | cpputest-starter-project | MyFirstTest.cpp | tests/MyFirstTest.cpp | #include "CppUTest/TestHarness.h"
extern "C"
{
/*
* Add your c-only include files here
*/
}
TEST_GROUP(MyCode)
{
void setup()
{
}
void teardown()
{
}
};
TEST(MyCode, test1)
{
FAIL("Your test is running! Now delete this line and watch your test pass.");
/*
* Instantiate your ... |
231 | cpp | cpputest-starter-project | ExampleTest.cpp | tests/ExampleTest.cpp | #include "CppUTest/TestHarness.h"
extern "C"
{
#include "Example.h"
}
TEST_GROUP(Example)
{
void setup()
{
}
void teardown()
{
}
};
TEST(Example, returns_1)
{
LONGS_EQUAL(1, example());
}
|
232 | cpp | cpputest-starter-project | io_FFFTest.cpp | tests/io-fff/io_FFFTest.cpp | extern "C"
{
#include "io.fff.h"
}
#include "CppUTest/TestHarness.h"
TEST_GROUP(IOReadWriteFFF)
{
void setup()
{
FFF_RESET;
}
void teardown()
{
}
};
TEST(IOReadWriteFFF, IOWrite)
{
IOWrite(99, 333);
LONGS_EQUAL(1, IOWrite_fake.call_count);
LONGS_EQUAL(99, IOWrite_fa... |
233 | cpp | cpputest-starter-project | io.fff.h | tests/io-fff/io.fff.h | #include "io.h"
#include "fff.h"
FAKE_VALUE_FUNCTION(IOData, IORead, IOAddress);
FAKE_VOID_FUNCTION(IOWrite, IOAddress, IOData);
|
234 | cpp | cpputest-starter-project | fff.h | tests/fff/fff.h | #ifndef FAKE_FUNCTIONS
#define FAKE_FUNCTIONS
#define FFF_MAX_ARGS (10u)
#ifndef FFF_ARG_HISTORY_LEN
#define FFF_ARG_HISTORY_LEN (50u)
#endif
#ifndef FFF_CALL_HISTORY_LEN
#define FFF_CALL_HISTORY_LEN (50u)
#endif
#ifndef FFF_RESET_ALL_FAKES_LEN
#define FFF_RESET_ALL_FAKES_LEN (50u)
#endif
#ifdef FFF_NO_EXTERN... |
235 | cpp | cpputest-starter-project | FooExampleFFFTests.cpp | tests/example-fff/FooExampleFFFTests.cpp | #include "CppUTest/TestHarness.h"
extern "C"
{
#include "FooExample.fff.h"
}
TEST_GROUP(fff_foo)
{
void setup()
{
FFF_RESET;
}
void teardown()
{
}
};
TEST(fff_foo, function_call_count_is_zero_after_init)
{
LONGS_EQUAL(0, voidfoo0_fake.call_count);
}
TEST(fff_foo, fake_a_void_fun... |
236 | cpp | cpputest-starter-project | FooExample.fff.h | tests/example-fff/FooExample.fff.h | #include "FooExample.h"
#include "fff.h"
/*
* Specify the fake functions you want in a header file like this one.
*
* Using this form of header, the file will be included once in the test case file, and
*/
FAKE_VOID_FUNCTION(voidfoo0);
FAKE_VOID_FUNCTION(voidfoo1, int);
FAKE_VOID_FUNCTION(voidfoo2, int, double);
F... |
237 | cpp | cpputest-starter-project | FormatOutputSpy.h | tests/printf-spy/FormatOutputSpy.h | #ifndef FORMAT_OUTPUT_SPY_INCLUDED
#define FORMAT_OUTPUT_SPY_INCLUDED
#include "FormatOutput.h"
int FormatOutputSpy(const char * format, ...);
void FormatOutputSpy_Create(unsigned int size);
void FormatOutputSpy_Destroy(void);
const char * FormatOutputSpy_GetOutput(void);
#endif
|
238 | cpp | cpputest-starter-project | FormatOutput.h | tests/printf-spy/FormatOutput.h | #ifndef FORMAT_OUTPUT_INCLUDED
#define FORMAT_OUTPUT_INCLUDED
extern int (*FormatOutput)(const char *, ...);
#endif /* FORMAT_OUTPIT_INCLUDED */
|
239 | cpp | cpputest-starter-project | FormatOutputSpyTest.cpp | tests/printf-spy/FormatOutputSpyTest.cpp | #include "CppUTest/TestHarness.h"
extern "C"
{
#include "FormatOutputSpy.h"
}
TEST_GROUP(FormatOutputSpy)
{
void setup()
{
UT_PTR_SET(FormatOutput, FormatOutputSpy);
}
void teardown()
{
FormatOutputSpy_Destroy();
}
};
TEST(FormatOutputSpy, Uninitialized)
{
FormatOutput("h... |
240 | cpp | cpputest-starter-project | io_CppUMockTest.cpp | tests/io-cppumock/io_CppUMockTest.cpp |
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
extern "C"
{
#include "io.h"
}
TEST_GROUP(IOReadWrite_CppUMockTest)
{
void setup()
{
}
void teardown()
{
mock("IO").checkExpectations();
mock().clear();
}
};
TEST(IOReadWrite_CppUMockTest, IOWrite)
{
... |
241 | cpp | cpputest-starter-project | io_CppUMock.cpp | tests/io-cppumock/io_CppUMock.cpp | #include "CppUTestExt/MockSupport.h"
extern "C"
{
#include "io.h"
}
void IOWrite(IOAddress addr, IOData data)
{
mock("IO")
.actualCall("IOWrite")
.withParameter("addr", (int)addr)
.withParameter("data", (int)data);
}
IOData IORead(IOAddress addr)
{
return (IOData)mock("IO"... |
242 | cpp | cpputest-starter-project | Example.h | example-include/Example.h | #ifndef EXAMPLE_INCLUDED
#define EXAMPLE_INCLUDED
int example(void);
#endif
|
243 | cpp | cpputest-starter-project | io.h | example-include/io.h | //- Copyright (c) 2008-20012 James Grenning
//- All rights reserved
//- For use by participants in James' training courses.
#ifndef IO_READ_WRITE_INCLUDED
#define IO_READ_WRITE_INCLUDED
#include <stdint.h>
typedef uint32_t IOAddress;
typedef uint16_t IOData;
IOData IORead(IOAddress offset);
void IOWrite(IOAddress... |
244 | cpp | cpputest-starter-project | FooExample.h | example-include/FooExample.h | #ifndef FOO_EXAMPLE_H_
#define FOO_EXAMPLE_H_
typedef struct mytype
{
int i;
double x;
} mytype;
void voidfoo0(void);
void voidfoo1(int);
void voidfoo2(int, double);
void voidfoo3(int, double, const char *);
//...
void voidfoo9(int, int, int, int, int, int, int, int, mytype *);
int intfoo0(void);
int intfoo1... |
245 | cpp | cmake-cpputest | RuntimeErrorStub.h | mocks/RuntimeErrorStub.h | /***
* Excerpted from "Test-Driven Development for Embedded C",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any p... |
246 | cpp | cmake-cpputest | RunAllTests.cpp | tests/RunAllTests.cpp | #include "CppUTest/CommandLineTestRunner.h"
IMPORT_TEST_GROUP(LedDriver);
int main(int argc, char** argv)
{
return RUN_ALL_TESTS(argc, argv);
} |
247 | cpp | cmake-cpputest | LedDriverTest.cpp | tests/LedDriver/LedDriverTest.cpp | /***
* Excerpted from "Test-Driven Development for Embedded C",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any p... |
248 | cpp | cmake-cpputest | RuntimeError.h | include/RuntimeError.h | /***
* Excerpted from "Test-Driven Development for Embedded C",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any p... |
249 | cpp | cmake-cpputest | LedDriver.h | include/LedDriver/LedDriver.h | /***
* Excerpted from "Test-Driven Development for Embedded C",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any p... |
250 | cpp | firmware_testing | common.h | code/src/include/common.h |
#ifndef _COMMON_H_
#define _COMMON_H_
#include <inttypes.h>
uint8_t calculator(char op, uint8_t val1, uint8_t val2);
/* I2C Hardware functions and slave registers */
#define I2C_SLAVE_ADDRESS 0x30 /* I2C slave address */
#define I2C_REG1 0x0A /* Register 1 offset */
#define I2C_REG2 0x... |
251 | cpp | firmware_testing | main.cpp | code/tests/main.cpp | /**
* This file is the main test file used by the CppUTest framework.
*/
#include "CppUTest/CommandLineTestRunner.h"
int main(int ac, char** av)
{
return CommandLineTestRunner::RunAllTests(ac, av);
}
|
252 | cpp | firmware_testing | t_math.cpp | code/tests/t_math.cpp | /**
* This file has all unit tests for all functions in src/math.c
*/
#include "CppUTest/TestHarness.h"
extern "C" {
#include "common.h"
}
TEST_GROUP(t_math)
{};
/* Test covers addition case */
TEST(t_math, calc_plus)
{
uint8_t ret = calculator('+', 2, 8);
CHECK_EQUAL(10, ret);
}
/* Test covers subtraction ... |
253 | cpp | firmware_testing | t_main.cpp | code/tests/t_main.cpp | /**
* This file has all unit tests for all functions in src/main.c
*/
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
extern "C" {
#include "common.h"
}
TEST_GROUP(t_main)
{
/* Stuff to do before each test */
void setup()
{ }
/* Stuff to do after each test */
void teard... |
254 | cpp | firmware_testing | t_other.cpp | code/tests/t_other.cpp | /**
* This file has all unit tests for all functions in src/other.c
*/
#include "CppUTest/TestHarness.h"
#include <thread>
extern "C" {
#include <unistd.h>
#include "common.h"
}
extern uint8_t brick_code;
TEST_GROUP(t_other)
{
/* Stuff to do before each test */
void setup()
{
/* Restore o... |
255 | cpp | firmware_testing | i2c_mock.cpp | code/tests/mocks/i2c_mock.cpp | /**
* This file contains mock functions of src/hw/i2c.c file. Mocking allows us to
* use these functions in the test framework to test firmware with hardware
* dependencies and define which execution path we want to take.
*/
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
extern "C" {
#... |
256 | cpp | blalor-cpputest | CommandLineArguments.cpp | src/CppUTest/CommandLineArguments.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... |
257 | cpp | blalor-cpputest | MemoryLeakDetector.cpp | src/CppUTest/MemoryLeakDetector.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... |
258 | cpp | blalor-cpputest | CommandLineTestRunner.cpp | src/CppUTest/CommandLineTestRunner.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... |
259 | cpp | blalor-cpputest | TestRegistry.cpp | src/CppUTest/TestRegistry.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... |
260 | cpp | blalor-cpputest | JUnitTestOutput.cpp | src/CppUTest/JUnitTestOutput.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... |
261 | cpp | blalor-cpputest | MemoryLeakAllocator.cpp | src/CppUTest/MemoryLeakAllocator.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... |
262 | cpp | blalor-cpputest | TestHarness_c.cpp | src/CppUTest/TestHarness_c.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... |
263 | cpp | blalor-cpputest | TestFailure.cpp | src/CppUTest/TestFailure.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... |
264 | cpp | blalor-cpputest | TestOutput.cpp | src/CppUTest/TestOutput.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... |
265 | cpp | blalor-cpputest | MemoryLeakWarningPlugin.cpp | src/CppUTest/MemoryLeakWarningPlugin.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... |
266 | cpp | blalor-cpputest | SimpleString.cpp | src/CppUTest/SimpleString.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... |
267 | cpp | blalor-cpputest | TestResult.cpp | src/CppUTest/TestResult.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... |
268 | cpp | blalor-cpputest | TestPlugin.cpp | src/CppUTest/TestPlugin.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... |
269 | cpp | blalor-cpputest | Utest.cpp | src/CppUTest/Utest.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... |
270 | cpp | blalor-cpputest | NullJUnitTestOutput.cpp | src/CppUTest/Nulls/NullJUnitTestOutput.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... |
271 | cpp | blalor-cpputest | MemoryReporterPlugin.cpp | src/CppUTestExt/MemoryReporterPlugin.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... |
272 | cpp | blalor-cpputest | MockActualFunctionCall.cpp | src/CppUTestExt/MockActualFunctionCall.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... |
273 | cpp | blalor-cpputest | MemoryReportAllocator.cpp | src/CppUTestExt/MemoryReportAllocator.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... |
274 | cpp | blalor-cpputest | CodeMemoryReportFormatter.cpp | src/CppUTestExt/CodeMemoryReportFormatter.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... |
275 | cpp | blalor-cpputest | MockExpectedFunctionCall.cpp | src/CppUTestExt/MockExpectedFunctionCall.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... |
276 | cpp | blalor-cpputest | MockNamedValue.cpp | src/CppUTestExt/MockNamedValue.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... |
277 | cpp | blalor-cpputest | MockSupportPlugin.cpp | src/CppUTestExt/MockSupportPlugin.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... |
278 | cpp | blalor-cpputest | MockExpectedFunctionsList.cpp | src/CppUTestExt/MockExpectedFunctionsList.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... |
279 | cpp | blalor-cpputest | MockSupport.cpp | src/CppUTestExt/MockSupport.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... |
280 | cpp | blalor-cpputest | MemoryReportFormatter.cpp | src/CppUTestExt/MemoryReportFormatter.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... |
281 | cpp | blalor-cpputest | MockFunctionCall.cpp | src/CppUTestExt/MockFunctionCall.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... |
282 | cpp | blalor-cpputest | MockFailure.cpp | src/CppUTestExt/MockFailure.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... |
283 | cpp | blalor-cpputest | MockSupport_c.cpp | src/CppUTestExt/MockSupport_c.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... |
284 | cpp | blalor-cpputest | OrderedTest.cpp | src/CppUTestExt/OrderedTest.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... |
285 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/GccNoStdC/UtestPlatform.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... |
286 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/VisualCpp/UtestPlatform.cpp | #include "Platform.h"
#include <stdlib.h>
#include "CppUTest/TestHarness.h"
#undef malloc
#undef free
#undef calloc
#undef realloc
#include "CppUTest/TestRegistry.h"
#include <stdio.h>
#include <stdarg.h>
#include <setjmp.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "CppUTest/PlatformSpecificFu... |
287 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/Gcc/UtestPlatform.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... |
288 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/StarterKit/UtestPlatform.cpp |
#include "CppUTest/TestHarness.h"
#include "CppUTest/TestResult.h"
#include <time.h>
#include <sys/time.h>
void Utest::executePlatformSpecificTestBody()
{
testBody();
}
///////////// Time in millis
static long TimeInMillisImplementation()
{
struct timeval tv;
struct timezone tz;
::gettimeofday(&tv, &tz);
retu... |
289 | cpp | blalor-cpputest | StarterMemoryLeakWarning.cpp | src/Platforms/StarterKit/StarterMemoryLeakWarning.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... |
290 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/Iar/UtestPlatform.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... |
291 | cpp | blalor-cpputest | SymbianMemoryLeakWarning.cpp | src/Platforms/Symbian/SymbianMemoryLeakWarning.cpp | /*
* Copyright (c) 2007, Michael Feathers, James Grenning, Bas Vodde and Timo Puronen
* 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... |
292 | cpp | blalor-cpputest | UtestPlatform.cpp | src/Platforms/Symbian/UtestPlatform.cpp | /*
* Copyright (c) 2007, Michael Feathers, James Grenning, Bas Vodde and Timo Puronen
* 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... |
293 | cpp | blalor-cpputest | AllTests.h | examples/ApplicationLib/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... |
294 | cpp | blalor-cpputest | CircularBuffer.cpp | examples/ApplicationLib/CircularBuffer.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... |
295 | cpp | blalor-cpputest | EventDispatcherTest.cpp | examples/ApplicationLib/EventDispatcherTest.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... |
296 | cpp | blalor-cpputest | CircularBufferTest.cpp | examples/ApplicationLib/CircularBufferTest.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... |
297 | cpp | blalor-cpputest | HelloTest.cpp | examples/ApplicationLib/HelloTest.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... |
298 | cpp | blalor-cpputest | MockDocumentationTest.cpp | examples/ApplicationLib/MockDocumentationTest.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... |
299 | cpp | blalor-cpputest | Printer.cpp | examples/ApplicationLib/Printer.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... |
300 | cpp | blalor-cpputest | hello.h | examples/ApplicationLib/hello.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.