在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 《测试驱动的嵌入式C语言开发》源码

《测试驱动的嵌入式C语言开发》源码

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:1.48M
  • 下载次数:15
  • 浏览次数:93
  • 发布时间:2020-07-04
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.zip
  • 所需积分:2
 

实例介绍

【实例简介】
《测试驱动的嵌入式C语言开发》一书源码,学习TDD的好资源。
【实例截图】
【核心代码】
TDD-for-Embedded-C
└── code
├── BookCode.dsw
├── CppUTest
│   ├── CppUTest.dsp
│   ├── CppUTest.dsw
│   ├── CppUTest.mak
│   ├── CppUTest.sln
│   ├── CppUTest.vcproj
│   ├── Makefile
│   ├── Makefile_CppUTestExt
│   ├── Makefile_CppUTestExt-old
│   ├── Makefile_for_old_make
│   ├── README_CppUTest.txt
│   ├── README_CppUTest_for_C.txt
│   ├── README_InstallCppUTest.txt
│   ├── README_Symbian.txt
│   ├── README_UsersOfPriorVersions.txt
│   ├── build
│   │   ├── ComponentMakefile
│   │   ├── ComponentMakefileExampleParameters
│   │   ├── MakefileWorker.mk
│   │   ├── StaticLibMakefile
│   │   ├── alltests.mmp
│   │   ├── bld.inf
│   │   └── cpputest.mmp
│   ├── cleanAll.sh
│   ├── cpputest-hist.txt
│   ├── examples
│   │   ├── AllTests
│   │   │   ├── AllTests.cpp
│   │   │   ├── AllTests.dsp
│   │   │   └── RunAllTests.sh
│   │   ├── ApplicationLib
│   │   │   ├── AllTests.h
│   │   │   ├── ApplicationLib.dsp
│   │   │   ├── CircularBuffer.cpp
│   │   │   ├── CircularBuffer.h
│   │   │   ├── CircularBufferTest.cpp
│   │   │   ├── EventDispatcher.cpp
│   │   │   ├── EventDispatcher.h
│   │   │   ├── EventDispatcherTest.cpp
│   │   │   ├── ExamplesNewOverrides.h
│   │   │   ├── HelloTest.cpp
│   │   │   ├── MockDocumentationTest.cpp
│   │   │   ├── MockPrinter.h
│   │   │   ├── Printer.cpp
│   │   │   ├── Printer.h
│   │   │   ├── PrinterTest.cpp
│   │   │   ├── hello.c
│   │   │   └── hello.h
│   │   ├── CppUTestExample.dsw
│   │   ├── Makefile
│   │   └── README.txt
│   ├── include
│   │   ├── CppUTest
│   │   │   ├── CommandLineArguments.h
│   │   │   ├── CommandLineTestRunner.h
│   │   │   ├── JUnitTestOutput.h
│   │   │   ├── MemoryLeakAllocator.h
│   │   │   ├── MemoryLeakDetector.h
│   │   │   ├── MemoryLeakDetectorMallocMacros.h
│   │   │   ├── MemoryLeakDetectorNewMacros.h
│   │   │   ├── MemoryLeakWarningPlugin.h
│   │   │   ├── PlatformSpecificFunctions.h
│   │   │   ├── SimpleString.h
│   │   │   ├── TestFailure.h
│   │   │   ├── TestHarness.h
│   │   │   ├── TestHarness_c.h
│   │   │   ├── TestOutput.h
│   │   │   ├── TestPlugin.h
│   │   │   ├── TestRegistry.h
│   │   │   ├── TestResult.h
│   │   │   ├── TestTestingFixture.h
│   │   │   ├── Utest.h
│   │   │   ├── UtestMacros.h
│   │   │   └── VirtualCall.h
│   │   ├── CppUTestExt
│   │   │   ├── CodeMemoryReportFormatter.h
│   │   │   ├── MemoryReportAllocator.h
│   │   │   ├── MemoryReportFormatter.h
│   │   │   ├── MemoryReporterPlugin.h
│   │   │   ├── MockActualFunctionCall.h
│   │   │   ├── MockExpectedFunctionCall.h
│   │   │   ├── MockExpectedFunctionsList.h
│   │   │   ├── MockFailure.h
│   │   │   ├── MockFunctionCall.h
│   │   │   ├── MockNamedValue.h
│   │   │   ├── MockSupport.h
│   │   │   ├── MockSupportPlugin.h
│   │   │   ├── MockSupport_c.h
│   │   │   └── OrderedTest.h
│   │   └── Platforms
│   │   ├── Gcc
│   │   │   └── Platform.h
│   │   ├── StarterKit
│   │   │   └── Platform.h
│   │   ├── Symbian
│   │   │   └── Platform.h
│   │   └── VisualCpp
│   │   ├── Platform.h
│   │   └── stdint.h
│   ├── makeAll.sh
│   ├── makeVc6.bat
│   ├── scripts
│   │   ├── CppUnitTemplates
│   │   │   ├── ClassName.cpp
│   │   │   ├── ClassName.h
│   │   │   ├── ClassNameC.c
│   │   │   ├── ClassNameC.h
│   │   │   ├── ClassNameCMultipleInstance.c
│   │   │   ├── ClassNameCMultipleInstance.h
│   │   │   ├── ClassNameCMultipleInstanceTest.cpp
│   │   │   ├── ClassNameCPolymorphic.c
│   │   │   ├── ClassNameCPolymorphic.h
│   │   │   ├── ClassNameCTest.cpp
│   │   │   ├── ClassNameTest.cpp
│   │   │   ├── InterfaceCTest.cpp
│   │   │   ├── InterfaceTest.cpp
│   │   │   ├── MockClassName.h
│   │   │   ├── MockClassNameC.c
│   │   │   ├── MockClassNameC.h
│   │   │   └── ProjectTemplate
│   │   │   ├── ProjectMakefile
│   │   │   ├── include
│   │   │   │   └── util
│   │   │   │   └── ProjectBuildTime.h
│   │   │   ├── src
│   │   │   │   └── util
│   │   │   │   └── ProjectBuildTime.cpp
│   │   │   └── tests
│   │   │   ├── AllTests.cpp
│   │   │   └── util
│   │   │   └── ProjectBuildTimeTest.cpp
│   │   ├── GenerateSrcFiles.sh
│   │   ├── InstallScripts.sh
│   │   ├── NewCBaseModule.sh
│   │   ├── NewCFunction.sh
│   │   ├── NewCInterface.sh
│   │   ├── NewCIoDriver.sh
│   │   ├── NewCModule.sh
│   │   ├── NewClass.sh
│   │   ├── NewCmiModule.sh
│   │   ├── NewHelp.sh
│   │   ├── NewInterface.sh
│   │   ├── NewLibrary.sh
│   │   ├── NewPackageDirs.sh
│   │   ├── NewProject.sh
│   │   ├── README.txt
│   │   ├── ReleaseCppUTest.sh
│   │   ├── checkForCppUTestEnvVariable.sh
│   │   ├── convertToUnity
│   │   │   ├── README.txt
│   │   │   ├── cpp_u_test_to_unity.rb
│   │   │   ├── cpp_u_test_to_unity_utils.rb
│   │   │   ├── cpp_u_test_to_unity_utils_tests.rb
│   │   │   ├── create_group_runner.rb
│   │   │   └── create_unity_test_runner.rb
│   │   ├── filterGcov.sh
│   │   ├── reformat.sh
│   │   ├── squeeze.sh
│   │   ├── svnignore.txt
│   │   ├── templates
│   │   │   ├── ClassName.cpp
│   │   │   ├── ClassName.h
│   │   │   ├── ClassNameC.c
│   │   │   ├── ClassNameC.h
│   │   │   ├── ClassNameCIoDriver.c
│   │   │   ├── ClassNameCIoDriver.h
│   │   │   ├── ClassNameCIoDriverTest.cpp
│   │   │   ├── ClassNameCMultipleInstance.c
│   │   │   ├── ClassNameCMultipleInstance.h
│   │   │   ├── ClassNameCMultipleInstanceTest.cpp
│   │   │   ├── ClassNameCPolymorphic.c
│   │   │   ├── ClassNameCPolymorphic.h
│   │   │   ├── ClassNameCTest.cpp
│   │   │   ├── ClassNameTest.cpp
│   │   │   ├── FunctionNameC.c
│   │   │   ├── FunctionNameC.h
│   │   │   ├── FunctionNameCTest.cpp
│   │   │   ├── InterfaceCTest.cpp
│   │   │   ├── InterfaceTest.cpp
│   │   │   ├── MockClassName.h
│   │   │   ├── MockClassNameC.c
│   │   │   ├── MockClassNameC.h
│   │   │   └── ProjectTemplate
│   │   │   ├── Project.cproject
│   │   │   ├── Project.project
│   │   │   ├── ProjectMakefile
│   │   │   ├── include
│   │   │   │   └── util
│   │   │   │   └── ProjectBuildTime.h
│   │   │   ├── src
│   │   │   │   └── util
│   │   │   │   └── ProjectBuildTime.cpp
│   │   │   └── tests
│   │   │   ├── AllTests.cpp
│   │   │   └── util
│   │   │   └── ProjectBuildTimeTest.cpp
│   │   └── zipExclude.txt
│   ├── src
│   │   ├── CppUTest
│   │   │   ├── CommandLineArguments.cpp
│   │   │   ├── CommandLineTestRunner.cpp
│   │   │   ├── JUnitTestOutput.cpp
│   │   │   ├── MemoryLeakAllocator.cpp
│   │   │   ├── MemoryLeakDetector.cpp
│   │   │   ├── MemoryLeakWarningPlugin.cpp
│   │   │   ├── Nulls
│   │   │   │   └── NullJUnitTestOutput.cpp
│   │   │   ├── SimpleString.cpp
│   │   │   ├── TestFailure.cpp
│   │   │   ├── TestHarness_c.cpp
│   │   │   ├── TestOutput.cpp
│   │   │   ├── TestPlugin.cpp
│   │   │   ├── TestRegistry.cpp
│   │   │   ├── TestResult.cpp
│   │   │   ├── UnitTestHarness.dsp
│   │   │   └── Utest.cpp
│   │   ├── CppUTestExt
│   │   │   ├── CodeMemoryReportFormatter.cpp
│   │   │   ├── MemoryReportAllocator.cpp
│   │   │   ├── MemoryReportFormatter.cpp
│   │   │   ├── MemoryReporterPlugin.cpp
│   │   │   ├── MockActualFunctionCall.cpp
│   │   │   ├── MockExpectedFunctionCall.cpp
│   │   │   ├── MockExpectedFunctionsList.cpp
│   │   │   ├── MockFailure.cpp
│   │   │   ├── MockFunctionCall.cpp
│   │   │   ├── MockNamedValue.cpp
│   │   │   ├── MockSupport.cpp
│   │   │   ├── MockSupportPlugin.cpp
│   │   │   ├── MockSupport_c.cpp
│   │   │   └── OrderedTest.cpp
│   │   └── Platforms
│   │   ├── Gcc
│   │   │   └── UtestPlatform.cpp
│   │   ├── Iar
│   │   │   └── UtestPlatform.cpp
│   │   ├── StarterKit
│   │   │   ├── StarterMemoryLeakWarning.cpp
│   │   │   └── UtestPlatform.cpp
│   │   ├── Symbian
│   │   │   ├── SymbianMemoryLeakWarning.cpp
│   │   │   └── UtestPlatform.cpp
│   │   └── VisualCpp
│   │   └── UtestPlatform.cpp
│   ├── tests
│   │   ├── AllTests.cpp
│   │   ├── AllTests.dep
│   │   ├── AllTests.dsp
│   │   ├── AllTests.h
│   │   ├── AllTests.mak
│   │   ├── AllTests.vcproj
│   │   ├── AllocationInCFile.c
│   │   ├── AllocationInCFile.h
│   │   ├── AllocationInCppFile.cpp
│   │   ├── AllocationInCppFile.h
│   │   ├── CommandLineArgumentsTest.cpp
│   │   ├── CommandLineTestRunnerTest.cpp
│   │   ├── CppUTestExt
│   │   │   ├── AllTests.cpp
│   │   │   ├── AllTests.h
│   │   │   ├── TestCodeMemoryReportFormatter.cpp
│   │   │   ├── TestMemoryReportAllocator.cpp
│   │   │   ├── TestMemoryReportFormatter.cpp
│   │   │   ├── TestMemoryReporterPlugin.cpp
│   │   │   ├── TestMockActualFunctionCall.cpp
│   │   │   ├── TestMockExpectedFunctionCall.cpp
│   │   │   ├── TestMockExpectedFunctionsList.cpp
│   │   │   ├── TestMockFailure.cpp
│   │   │   ├── TestMockFailure.h
│   │   │   ├── TestMockPlugin.cpp
│   │   │   ├── TestMockSupport.cpp
│   │   │   ├── TestMockSupport_c.cpp
│   │   │   ├── TestMockSupport_cCFile.c
│   │   │   ├── TestMockSupport_cCFile.h
│   │   │   └── TestOrderedTest.cpp
│   │   ├── Extensions
│   │   │   ├── AllTests.h
│   │   │   ├── SimpleStringExtensionsTest.cpp
│   │   │   ├── SimpleStringFromStdintTest.cpp
│   │   │   └── TestOrderedTest.cpp
│   │   ├── JUnitOutputTest.cpp
│   │   ├── MemoryLeakAllocatorTest.cpp
│   │   ├── MemoryLeakDetectorTest.cpp
│   │   ├── MemoryLeakOperatorOverloadsTest.cpp
│   │   ├── MemoryLeakWarningTest.cpp
│   │   ├── NullTestTest.cpp
│   │   ├── PluginTest.cpp
│   │   ├── RunAllTests.sh
│   │   ├── SetPluginTest.cpp
│   │   ├── SimpleStringTest.cpp
│   │   ├── TestFailureTest.cpp
│   │   ├── TestHarness_cTest.cpp
│   │   ├── TestHarness_cTestCFile.c
│   │   ├── TestInstallerTest.cpp
│   │   ├── TestOutputTest.cpp
│   │   ├── TestRegistryTest.cpp
│   │   ├── TestResultTest.cpp
│   │   └── UtestTest.cpp
│   ├── todo.txt
│   └── version.txt
├── Makefile
├── MakefileCppUTest.mk
├── MakefileUnity.mk
├── README.txt
├── SandBox
│   ├── Makefile
│   ├── MakefileCppUTest.mk
│   ├── MakefileUnity.mk
│   ├── SandBox.dsw
│   ├── include
│   │   └── LedDriver
│   │   └── LedDriver.h
│   ├── src
│   │   ├── LedDriver
│   │   │   └── LedDriver.c
│   │   └── ProductionCodeLib.dsp
│   ├── tests
│   │   ├── AllTests.cpp
│   │   ├── AllTests_CppUTest.dsp
│   │   └── LedDriver
│   │   └── LedDriverTest.cpp
│   └── unity
│   ├── AllTests.c
│   ├── LedDriver
│   │   ├── LedDriverTest.c
│   │   └── LedDriverTestRunner.c
│   └── objs
│   └── AllTests.d
├── docs
│   └── STMicroelectronics
│   ├── c2414.c
│   ├── c2414.h
│   ├── c2414FlashReadAndWrite.h
│   └── m28w160ect.pdf
├── include
│   ├── HomeAutomation
│   │   ├── LightController.h
│   │   ├── LightScheduler.h
│   │   └── TimeService.h
│   ├── IO
│   │   ├── Flash.h
│   │   ├── IO.h
│   │   ├── MicroTime.h
│   │   └── m28w160ect.h
│   ├── LedDriver
│   │   └── LedDriver.h
│   ├── MyOS
│   │   └── Thread.h
│   ├── dvr
│   │   └── DvRecorder.h
│   ├── util
│   │   ├── CircularBuffer.h
│   │   ├── RuntimeError.h
│   │   ├── Utils.h
│   │   └── common.h
│   └── zune
│   └── RtcTime.h
├── mocks
│   ├── FakeMicroTime.c
│   ├── FakeMicroTime.h
│   ├── FakeMicroTimeTest.cpp
│   ├── FormatOutputSpy.c
│   ├── FormatOutputSpy.h
│   ├── FormatOutputSpyTest.cpp
│   ├── MockIO.c
│   ├── MockIO.h
│   ├── MockIOTest.cpp
│   ├── RuntimeErrorStub.c
│   ├── RuntimeErrorStub.h
│   └── cmock
│   ├── MockIO.c
│   └── MockIO.h
├── scripts
│   ├── fix.sh
│   ├── makeZip.sh
│   ├── show.sh
│   └── zipExclude.txt
├── src
│   ├── HomeAutomation
│   │   └── LightScheduler.c
│   ├── IO
│   │   ├── Flash.c
│   │   └── IO.c
│   ├── LedDriver
│   │   └── LedDriver.c
│   ├── MyOS
│   │   ├── Acme
│   │   │   ├── AcmeOs.c
│   │   │   ├── AcmeOs.h
│   │   │   └── Thread.c
│   │   ├── Micrium
│   │   │   └── Thread.c
│   │   ├── Win32
│   │   │   └── Thread.c
│   │   └── posix
│   │   └── Thread.c
│   ├── ProductionCodeLib.dsp
│   ├── dvr
│   │   └── DvRecorder.c
│   ├── eyeMovement
│   │   ├── a.out
│   │   └── eye.c
│   ├── util
│   │   ├── CircularBuffer.c
│   │   └── Utils.c
│   └── zune
│   └── RtcTime.c
├── t0
│   ├── Makefile
│   ├── include
│   │   ├── HomeAutomation
│   │   │   ├── LightController.h
│   │   │   ├── LightScheduler.h
│   │   │   └── RandomMinute.h
│   │   └── util
│   │   ├── TimeService.h
│   │   └── common.h
│   ├── mocks
│   │   ├── FakeRandomMinute.c
│   │   ├── FakeRandomMinute.h
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.cpp
│   │   ├── LightControllerSpy.c
│   │   ├── LightControllerSpy.h
│   │   └── LightControllerTestSpy.cpp
│   ├── src
│   │   ├── HomeAutomation
│   │   │   ├── LightScheduler.c
│   │   │   └── RandomMinute.c
│   │   └── ProductionCodeLib.dsp
│   ├── t0.dsw
│   ├── tests
│   │   ├── AllTests.cpp
│   │   ├── AllTests_CppUTest.dsp
│   │   └── HomeAutomation
│   │   ├── LightSchedulerRandomizeTest.cpp
│   │   ├── LightSchedulerTest.cpp
│   │   └── RandomMinuteTest.cpp
│   └── unity
│   └── HomeAutomation
│   ├── LightSchedulerTest.c
│   └── LightSchedulerTest_runner.c
├── t1
│   ├── Makefile
│   ├── include
│   │   ├── HomeAutomation
│   │   │   ├── LightController.h
│   │   │   ├── LightScheduler.h
│   │   │   └── RandomMinute.h
│   │   ├── IO
│   │   │   ├── Flash.h
│   │   │   ├── IO.h
│   │   │   ├── MicroTime.h
│   │   │   └── m28w160ect.h
│   │   ├── MyOS
│   │   │   ├── MyOsPrivate.h
│   │   │   └── Thread.h
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.h
│   │   │   ├── LightDriver.h
│   │   │   ├── MemMappedLightDriver.h
│   │   │   └── X10LightDriver.h
│   │   └── util
│   │   ├── TimeService.h
│   │   └── common.h
│   ├── mocks
│   │   ├── FakeRandomMinute.c
│   │   ├── FakeRandomMinute.h
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.cpp
│   │   ├── IO
│   │   │   ├── FakeMicroTime.c
│   │   │   ├── FakeMicroTime.h
│   │   │   └── FakeMicroTimeTest.cpp
│   │   ├── LightDriverSpy.c
│   │   ├── LightDriverSpy.h
│   │   └── LightDriverSpyTest.cpp
│   ├── src
│   │   ├── HomeAutomation
│   │   │   ├── LightController.c
│   │   │   ├── LightScheduler.c
│   │   │   └── RandomMinute.c
│   │   ├── IO
│   │   │   ├── Flash.c
│   │   │   └── IO.c
│   │   ├── MyOS
│   │   │   ├── Acme
│   │   │   │   ├── AcmeOs.c
│   │   │   │   ├── AcmeOs.h
│   │   │   │   └── Thread.c
│   │   │   ├── MyOsHelpers.c
│   │   │   ├── Win32
│   │   │   │   └── Thread.c
│   │   │   └── posix
│   │   │   └── Thread.c
│   │   ├── ProductionCodeLib.dsp
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.c
│   │   │   ├── MemMappedLightDriver.c
│   │   │   └── X10LightDriver.c
│   │   └── util
│   │   ├── TimeService.c
│   │   ├── TimeService_Helpers.c
│   │   └── common.c
│   ├── t1.dsw
│   └── tests
│   ├── AllTests.cpp
│   ├── AllTests_CppUTest.dsp
│   ├── HomeAutomation
│   │   ├── LightControllerTest.cpp
│   │   ├── LightSchedulerRandomizeTest.cpp
│   │   ├── LightSchedulerTest.cpp
│   │   └── RandomMinuteTest.cpp
│   ├── IO
│   │   └── FlashTest.cpp
│   ├── MyOS
│   │   └── ThreadTest.cpp
│   ├── devices
│   │   ├── AcmeWirelessLightDriverTest.cpp
│   │   ├── MemMappedLightDriverTest.cpp
│   │   └── X10LightDriverTest.cpp
│   └── util
│   └── TimeServiceHelpersTest.cpp
├── t2
│   ├── Makefile
│   ├── include
│   │   ├── HomeAutomation
│   │   │   ├── LightController.h
│   │   │   ├── LightScheduler.h
│   │   │   └── RandomMinute.h
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.h
│   │   │   ├── LightDriver.h
│   │   │   ├── LightDriverPrivate.h
│   │   │   ├── MemMappedLightDriver.h
│   │   │   └── X10LightDriver.h
│   │   └── util
│   │   ├── TimeService.h
│   │   └── common.h
│   ├── mocks
│   │   ├── FakeRandomMinute.c
│   │   ├── FakeRandomMinute.h
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.cpp
│   │   ├── LightDriverSpy.c
│   │   ├── LightDriverSpy.h
│   │   └── LightDriverSpyTest.cpp
│   ├── src
│   │   ├── HomeAutomation
│   │   │   ├── LightController.c
│   │   │   ├── LightScheduler.c
│   │   │   └── RandomMinute.c
│   │   ├── ProductionCodeLib.dsp
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.c
│   │   │   ├── LightDriver.c
│   │   │   ├── MemMappedLightDriver.c
│   │   │   └── X10LightDriver.c
│   │   └── util
│   │   ├── Time.c
│   │   ├── TimeService.c
│   │   └── common.c
│   ├── t2.dsw
│   └── tests
│   ├── AllTests.cpp
│   ├── AllTests_CppUTest.dsp
│   ├── HomeAutomation
│   │   ├── LightControllerTest.cpp
│   │   ├── LightSchedulerRandomizeTest.cpp
│   │   ├── LightSchedulerTest.cpp
│   │   └── RandomMinuteTest.cpp
│   ├── devices
│   │   ├── AcmeWirelessLightDriverTest.cpp
│   │   ├── LightDriverTest.cpp
│   │   ├── MemMappedLightDriverTest.cpp
│   │   └── X10LightDriverTest.cpp
│   └── util
│   └── TimeTest.cpp
├── t3
│   ├── Makefile
│   ├── include
│   │   ├── HomeAutomation
│   │   │   ├── LightController.h
│   │   │   ├── LightScheduler.h
│   │   │   └── RandomMinute.h
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.h
│   │   │   ├── LightDriver.h
│   │   │   ├── LightDriverPrivate.h
│   │   │   ├── MemMappedLightDriver.h
│   │   │   └── X10LightDriver.h
│   │   └── util
│   │   ├── TimeService.h
│   │   └── common.h
│   ├── mocks
│   │   ├── CountingLightDriver.c
│   │   ├── CountingLightDriver.h
│   │   ├── FakeRandomMinute.c
│   │   ├── FakeRandomMinute.h
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.cpp
│   │   ├── LightDriverSpy.c
│   │   ├── LightDriverSpy.h
│   │   └── LightDriverSpyTest.cpp
│   ├── src
│   │   ├── ApplicationLib.dsp
│   │   ├── HomeAutomation
│   │   │   ├── LightController.c
│   │   │   ├── LightScheduler.c
│   │   │   └── RandomMinute.c
│   │   ├── ProductionCodeLib.dsp
│   │   ├── devices
│   │   │   ├── AcmeWirelessLightDriver.c
│   │   │   ├── LightDriver.c
│   │   │   ├── MemMappedLightDriver.c
│   │   │   └── X10LightDriver.c
│   │   └── util
│   │   ├── Time.c
│   │   ├── TimeService.c
│   │   ├── TimeService_Helpers.c
│   │   └── common.c
│   ├── t3.dsw
│   └── tests
│   ├── AllTests.cpp
│   ├── AllTests.dsp
│   ├── AllTests_CppUTest.dsp
│   ├── HomeAutomation
│   │   ├── LightControllerTest.cpp
│   │   ├── LightSchedulerRandomizeTest.cpp
│   │   ├── LightSchedulerTest.cpp
│   │   └── RandomMinuteTest.cpp
│   ├── devices
│   │   ├── AcmeWirelessLightDriverTest.cpp
│   │   ├── LightDriverTest.cpp
│   │   ├── MemMappedLightDriverTest.cpp
│   │   └── X10LightDriverTest.cpp
│   └── util
│   └── TimeTest.cpp
├── tests
│   ├── AllTests.cpp
│   ├── AllTests_CppUTest.dsp
│   ├── HomeAutomation
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.cpp
│   │   ├── LightControllerSpy.c
│   │   ├── LightControllerSpy.h
│   │   ├── LightControllerSpyTest.cpp
│   │   └── LightSchedulerTest.cpp
│   ├── IO
│   │   ├── FlashTest.cpp
│   │   └── LegacyFlashTest.cpp
│   ├── LedDriver
│   │   └── LedDriverTest.cpp
│   ├── MyOS
│   │   └── ThreadTest.cpp
│   ├── dvr
│   │   └── DvRecorderTest.cpp
│   ├── stdio
│   │   └── SprintfTest.cpp
│   ├── util
│   │   ├── CircularBufferPrintTest.cpp
│   │   └── CircularBufferTest.cpp
│   └── zune
│   └── RtcTimeTest.cpp
├── unity
│   ├── AllTests.c
│   ├── HomeAutomation
│   │   ├── FakeTimeService.c
│   │   ├── FakeTimeService.h
│   │   ├── FakeTimeServiceTest.c
│   │   ├── FakeTimeServiceTest_runner.c
│   │   ├── LightControllerSpy.c
│   │   ├── LightControllerSpy.h
│   │   ├── LightControllerSpyTest.c
│   │   ├── LightControllerSpyTest_runner.c
│   │   ├── LightSchedulerTest.c
│   │   └── LightSchedulerTest_runner.c
│   ├── LedDriver
│   │   ├── LedDriverTest.c
│   │   └── LedDriverTestRunner.c
│   ├── build
│   │   ├── MakefileWorker.mk
│   │   └── filterGcov.sh
│   ├── mocks
│   │   ├── RuntimeErrorStub.c
│   │   └── RuntimeErrorStub.h
│   └── stdio
│   ├── SprintfTest.c
│   └── SprintfTestRunner.c
└── unity.framework
├── auto
│   ├── colour_prompt.rb
│   ├── colour_reporter.rb
│   ├── generate_config.yml
│   ├── generate_module.rb
│   ├── generate_test_runner.rb
│   ├── test_file_filter.rb
│   └── unity_test_summary.rb
├── docs
│   ├── Unity Summary.odt
│   ├── Unity Summary.pdf
│   ├── Unity Summary.txt
│   └── license.txt
├── examples
│   ├── helper
│   │   ├── UnityHelper.c
│   │   └── UnityHelper.h
│   ├── makefile
│   ├── rakefile.rb
│   ├── rakefile_helper.rb
│   ├── readme.txt
│   ├── src
│   │   ├── ProductionCode.c
│   │   ├── ProductionCode.h
│   │   ├── ProductionCode2.c
│   │   └── ProductionCode2.h
│   └── test
│   ├── TestProductionCode.c
│   ├── TestProductionCode2.c
│   └── no_ruby
│   ├── TestProductionCode2_Runner.c
│   └── TestProductionCode_Runner.c
├── extras
│   └── fixture
│   ├── build
│   │   ├── MakefileWorker.mk
│   │   └── filterGcov.sh
│   ├── rakefile.rb
│   ├── rakefile_helper.rb
│   ├── readme.txt
│   ├── src
│   │   ├── unity_fixture.c
│   │   ├── unity_fixture.h
│   │   ├── unity_fixture_internals.h
│   │   └── unity_fixture_malloc_overrides.h
│   └── test
│   ├── main
│   │   └── AllTests.c
│   ├── testunity_fixture.c
│   ├── unity_fixture_Test.c
│   ├── unity_fixture_TestRunner.c
│   ├── unity_output_Spy.c
│   └── unity_output_Spy.h
├── makefile
├── rakefile.rb
├── rakefile_helper.rb
├── release
│   ├── build.info
│   └── version.info
├── src
│   ├── unity.c
│   ├── unity.h
│   └── unity_internals.h
├── targets
│   ├── gcc.yml
│   ├── gcc_64.yml
│   ├── hitech_picc18.yml
│   ├── iar_arm_v4.yml
│   ├── iar_arm_v5.yml
│   ├── iar_cortexm3_v5.yml
│   └── iar_msp430.yml
└── test
├── expectdata
│   ├── testsample_cmd.c
│   ├── testsample_def.c
│   ├── testsample_mock_cmd.c
│   ├── testsample_mock_def.c
│   ├── testsample_mock_new1.c
│   ├── testsample_mock_new2.c
│   ├── testsample_mock_param.c
│   ├── testsample_mock_run1.c
│   ├── testsample_mock_run2.c
│   ├── testsample_mock_yaml.c
│   ├── testsample_new1.c
│   ├── testsample_new2.c
│   ├── testsample_param.c
│   ├── testsample_run1.c
│   ├── testsample_run2.c
│   └── testsample_yaml.c
├── test_generate_test_runner.rb
├── testdata
│   ├── mocksample.c
│   ├── sample.yml
│   └── testsample.c
├── testparameterized.c
└── testunity.c

179 directories, 614 files

标签:

实例下载地址

《测试驱动的嵌入式C语言开发》源码

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警