Browse Source

refactoring: lösche unnötige Ordner, Anton Lohrey

remotes/origin/Läufer-fertig,-Hendrik-Voß
fdai7492 11 months ago
parent
commit
b02e277188
  1. 18
      .vscode/c_cpp_properties.json
  2. 24
      .vscode/launch.json
  3. 60
      .vscode/settings.json
  4. 41
      build/artifacts/test/report.xml
  5. 9
      build/test/cache/defines_dependency.yml
  6. 244
      build/test/cache/input.yml
  7. 269
      build/test/cache/test_Bauer.c
  8. 67
      build/test/cache/test_Input.c
  9. 121
      build/test/cache/test_Moving.c
  10. 63
      build/test/cache/test_Schachbrett.c
  11. 2
      build/test/dependencies/Bauer.d
  12. 1
      build/test/dependencies/Input.d
  13. 1
      build/test/dependencies/Moving.d
  14. 1
      build/test/dependencies/Schachbrett.d
  15. 6
      build/test/dependencies/cmock.d
  16. 4
      build/test/dependencies/test_Bauer.d
  17. 4
      build/test/dependencies/test_Bauer_runner.d
  18. 4
      build/test/dependencies/test_Input.d
  19. 4
      build/test/dependencies/test_Input_runner.d
  20. 4
      build/test/dependencies/test_Moving.d
  21. 4
      build/test/dependencies/test_Moving_runner.d
  22. 4
      build/test/dependencies/test_Schachbrett.d
  23. 4
      build/test/dependencies/test_Schachbrett_runner.d
  24. 4
      build/test/dependencies/unity.d
  25. BIN
      build/test/out/c/Bauer.o
  26. BIN
      build/test/out/c/Input.o
  27. BIN
      build/test/out/c/Moving.o
  28. BIN
      build/test/out/c/Schachbrett.o
  29. BIN
      build/test/out/c/cmock.o
  30. BIN
      build/test/out/c/test_Bauer.o
  31. BIN
      build/test/out/c/test_Bauer_runner.o
  32. BIN
      build/test/out/c/test_Input.o
  33. BIN
      build/test/out/c/test_Input_runner.o
  34. BIN
      build/test/out/c/test_Moving.o
  35. BIN
      build/test/out/c/test_Moving_runner.o
  36. BIN
      build/test/out/c/test_Schachbrett.o
  37. BIN
      build/test/out/c/test_Schachbrett_runner.o
  38. BIN
      build/test/out/c/unity.o
  39. BIN
      build/test/out/test_Bauer.out
  40. BIN
      build/test/out/test_Input.out
  41. BIN
      build/test/out/test_Moving.out
  42. BIN
      build/test/out/test_Schachbrett.out
  43. 269
      build/test/preprocess/files/test_Bauer.c
  44. 67
      build/test/preprocess/files/test_Input.c
  45. 121
      build/test/preprocess/files/test_Moving.c
  46. 63
      build/test/preprocess/files/test_Schachbrett.c
  47. 5
      build/test/preprocess/includes/test_Bauer.c
  48. 3
      build/test/preprocess/includes/test_Input.c
  49. 5
      build/test/preprocess/includes/test_Moving.c
  50. 3
      build/test/preprocess/includes/test_Schachbrett.c
  51. 42
      build/test/results/test_Bauer.pass
  52. 19
      build/test/results/test_Input.pass
  53. 30
      build/test/results/test_Moving.pass
  54. 18
      build/test/results/test_Schachbrett.pass
  55. 89
      build/test/runners/test_Bauer_runner.c
  56. 81
      build/test/runners/test_Input_runner.c
  57. 83
      build/test/runners/test_Moving_runner.c
  58. 81
      build/test/runners/test_Schachbrett_runner.c

18
.vscode/c_cpp_properties.json

@ -1,18 +0,0 @@
{
"configurations": [
{
"name": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "gcc",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}

24
.vscode/launch.json

@ -1,24 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "c:/Users/emman/project_schach/taktikmeister/src",
"program": "c:/Users/emman/project_schach/taktikmeister/src/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

60
.vscode/settings.json

@ -1,60 +0,0 @@
{
"C_Cpp.dimInactiveRegions": false,
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat",
"C_Cpp_Runner.cCompilerPath": "gcc",
"C_Cpp_Runner.cppCompilerPath": "g++",
"C_Cpp_Runner.debuggerPath": "gdb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
}

41
build/artifacts/test/report.xml

@ -1,41 +0,0 @@
<?xml version='1.0' encoding='utf-8' ?>
<TestRun>
<FailedTests/>
<SuccessfulTests>
<Test id="1">
<Name>test/test_Bauer.c::test_Bauer_X_Bewegung</Name>
</Test>
<Test id="2">
<Name>test/test_Bauer.c::test_Bauer_Schlag_Bewegung</Name>
</Test>
<Test id="3">
<Name>test/test_Bauer.c::test_Bauer_Schwarz_Y_Bewegung</Name>
</Test>
<Test id="4">
<Name>test/test_Bauer.c::test_Bauer_Y_Bewegung</Name>
</Test>
<Test id="5">
<Name>test/test_Bauer.c::test_Bauer_Start_Bewegung</Name>
</Test>
<Test id="6">
<Name>test/test_Input.c::test_getUserInput</Name>
</Test>
<Test id="7">
<Name>test/test_Moving.c::test_Bauern_bewegen</Name>
</Test>
<Test id="8">
<Name>test/test_Moving.c::test_istzugerlaubt</Name>
</Test>
<Test id="9">
<Name>test/test_Schachbrett.c::test_Schachbrett_erstellen</Name>
</Test>
</SuccessfulTests>
<IgnoredTests/>
<Statistics>
<Tests>9</Tests>
<Ignores>0</Ignores>
<FailuresTotal>0</FailuresTotal>
<Errors>0</Errors>
<Failures>0</Failures>
</Statistics>
</TestRun>

9
build/test/cache/defines_dependency.yml

@ -1,9 +0,0 @@
---
src/Input.c:
- TEST
src/Schachbrett.c:
- TEST
src/Moving.c:
- TEST
src/Bauer.c:
- TEST

244
build/test/cache/input.yml

@ -1,244 +0,0 @@
---
:project:
:use_exceptions: false
:use_mocks: true
:compile_threads: 1
:test_threads: 1
:use_test_preprocessor: true
:use_preprocessor_directives: false
:use_deep_dependencies: false
:generate_deep_dependencies: true
:auto_link_deep_dependencies: false
:test_file_prefix: test_
:options_paths: []
:release_build: false
:use_auxiliary_dependencies: true
:build_root: build
:which_ceedling: gem
:ceedling_version: 0.31.1
:default_tasks:
- test:all
:release_build:
:use_assembly: false
:artifacts: []
:paths:
:test:
- "+:test/**"
- "-:test/support"
:source:
- src/**
:support:
- test/support
:include: []
:libraries: []
:test_toolchain_include: []
:release_toolchain_include: []
:files:
:test: []
:source: []
:assembly: []
:support: []
:include: []
:environment:
- :rake_columns: '120'
:defines:
:test:
- &1 []
- TEST
:test_preprocess:
- *1
- TEST
:release: []
:release_preprocess: []
:use_test_definition: false
:common: []
:libraries:
:flag: "-l${1}"
:path_flag: "-L ${1}"
:test: []
:test_preprocess: []
:release: []
:release_preprocess: []
:placement: :end
:system: []
:flags: {}
:extension:
:header: ".h"
:source: ".c"
:assembly: ".s"
:object: ".o"
:libraries:
- ".a"
- ".so"
:executable: ".out"
:map: ".map"
:list: ".lst"
:testpass: ".pass"
:testfail: ".fail"
:dependencies: ".d"
:unity:
:vendor_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor
:defines: []
:cmock:
:vendor_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor
:defines: []
:includes: []
:mock_prefix: mock_
:when_no_prototypes: :warn
:enforce_strict_ordering: true
:plugins:
- :ignore
- :callback
:treat_as:
uint8: HEX8
uint16: HEX16
uint32: UINT32
int8: INT8
bool: UINT8
:mock_path: build/test/mocks
:verbosity: 3
:unity_helper: false
:cexception:
:vendor_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor
:defines: []
:test_runner:
:includes: []
:file_suffix: _runner
:tools:
:test_compiler:
:executable: gcc.exe
:name: default_test_compiler
:stderr_redirect: :none
:background_exec: :none
:optional: false
:arguments:
- ''
- ''
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR
- "-DGNU_COMPILER"
- "-g"
- ''
- -c "${1}"
- -o "${2}"
- "-MMD"
- -MF "${4}"
:test_fixture:
:executable: "${1}"
:name: default_test_fixture
:stderr_redirect: :auto
:background_exec: :none
:optional: false
:arguments: []
:test_linker:
:executable: gcc.exe
:name: default_test_linker
:stderr_redirect: :none
:background_exec: :none
:optional: false
:arguments:
- ''
- ''
- ''
- '"${1}"'
- "${5}"
- -o "${2}"
- ''
- "${4}"
- ''
:test_file_preprocessor:
:executable: gcc.exe
:name: default_test_file_preprocessor
:stderr_redirect: :none
:background_exec: :none
:optional: false
:arguments:
- ''
- ''
- "-E"
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR
- "-D$": DEFINES_TEST_PREPROCESS
- "-DGNU_COMPILER"
- '"${1}"'
- -o "${2}"
:test_file_preprocessor_directives:
:executable: gcc.exe
:name: default_test_file_preprocessor_directives
:stderr_redirect: :none
:background_exec: :none
:optional: false
:arguments:
- "-E"
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR
- "-D$": DEFINES_TEST_PREPROCESS
- "-DGNU_COMPILER"
- "-fdirectives-only"
- '"${1}"'
- -o "${2}"
:test_includes_preprocessor:
:executable: gcc.exe
:name: default_test_includes_preprocessor
:stderr_redirect: :none
:background_exec: :none
:optional: false
:arguments:
- ''
- ''
- "-E"
- "-MM"
- "-MG"
- -I"$": COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR
- -I"$": COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE
- "-D$": COLLECTION_DEFINES_TEST_AND_VENDOR
- "-D$": DEFINES_TEST_PREPROCESS
- "-DGNU_COMPILER"
- '"${1}"'
:test_compiler:
:arguments: []
:test_linker:
:arguments: []
:test_fixture:
:arguments: []
:link_objects: []
:test_includes_preprocessor:
:arguments: []
:test_file_preprocessor:
:arguments: []
:test_file_preprocessor_directives:
:arguments: []
:test_dependencies_generator:
:arguments: []
:release_compiler:
:arguments: []
:release_linker:
:arguments: []
:release_assembler:
:arguments: []
:release_dependencies_generator:
:arguments: []
:plugins:
:load_paths:
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/../plugins
:enabled:
- stdout_pretty_tests_report
- module_generator
- xml_tests_report
:display_raw_test_results: false
:stdout_pretty_tests_report_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/../plugins/stdout_pretty_tests_report
:module_generator_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/../plugins/module_generator
:xml_tests_report_path: C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/lib/../plugins/xml_tests_report
:gcov:
:reports:
- HtmlDetailed
:gcovr:
:html_medium_threshold: 75
:html_high_threshold: 90
:module_generator:
:project_root: "./"
:source_root: src/
:test_root: test/

269
build/test/cache/test_Bauer.c

@ -1,269 +0,0 @@
#include "src/Bauer.h"
#include "src/Spieler.h"
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Bauer_X_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 2;
int endY = 1;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(24))));}} while(0);
do {if (!(istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(27)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Schlag_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 6;
int startY = 2;
int endX = 5;
int endY = 3;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(46))));}} while(0);
brett[startY][startX] = 'P';
brett[endY][endX] = 'p';
print_Schachfeld(brett,8,8);
do {if (!(istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(53)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Schwarz_Y_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 6;
int endX = 1;
int endY = 5;
Player player = PLAYER_BLACK;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(72))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(75)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Y_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 1;
int endY = 2;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(95))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(98)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Start_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 2;
int startY = 1;
int endX = 2;
int endY = 3;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(117))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(120)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

67
build/test/cache/test_Input.c

@ -1,67 +0,0 @@
#include "src/Input.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_getUserInput(void) {
const char *test_input = "a1";
FILE *tempInputFile;
tempInputFile = fopen("temp_input.txt", "w");
fprintf(tempInputFile, "%s\n", test_input);
fclose(tempInputFile);
tempInputFile = freopen("temp_input.txt", "r",
(__acrt_iob_func(0))
);
char *actual_input = getUserInput();
UnityAssertEqualString((const char*)((test_input)), (const char*)((actual_input)), (
((void *)0)
), (UNITY_UINT)(38));
free(actual_input);
fclose(tempInputFile);
remove("temp_input.txt");
}

121
build/test/cache/test_Moving.c

@ -1,121 +0,0 @@
#include "src/Spieler.h"
#include "src/Moving.h"
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Bauern_bewegen(void) {
char** brett = Schachbrett_erstellen();
int startX = 0;
int startY = 1;
int endX = 0;
int endY = 2;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(23))));}} while(0);
machezug( brett, startX, startY, endX, endY, player);
print_Schachfeld(brett,8,8);
UnityAssertEqualNumber((UNITY_INT)(('P')), (UNITY_INT)((brett[2][0])), (
((void *)0)
), (UNITY_UINT)(29), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((brett[1][0])), (
((void *)0)
), (UNITY_UINT)(30), UNITY_DISPLAY_STYLE_INT);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_istzugerlaubt(void){
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 1;
int endY = 1;
Player player = PLAYER_WHITE;
do {if (!(istzugerlaubt(brett,startX,startY,endX,endY,player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(49)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

63
build/test/cache/test_Schachbrett.c

@ -1,63 +0,0 @@
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Schachbrett_erstellen(void) {
char** brett = Schachbrett_erstellen();
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(15))));}} while(0);
UnityAssertEqualNumber((UNITY_INT)(('R')), (UNITY_INT)((brett[0][0])), (
((void *)0)
), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)(('p')), (UNITY_INT)((brett[6][0])), (
((void *)0)
), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((brett[4][4])), (
((void *)0)
), (UNITY_UINT)(20), UNITY_DISPLAY_STYLE_INT);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

2
build/test/dependencies/Bauer.d

@ -1,2 +0,0 @@
build/test/out/c/Bauer.o: src/Bauer.c src/spieler.h src/Moving.h \
src/Bauer.h

1
build/test/dependencies/Input.d

@ -1 +0,0 @@
build/test/out/c/Input.o: src/Input.c

1
build/test/dependencies/Moving.d

@ -1 +0,0 @@
build/test/out/c/Moving.o: src/Moving.c src/spieler.h src/Bauer.h

1
build/test/dependencies/Schachbrett.d

@ -1 +0,0 @@
build/test/out/c/Schachbrett.o: src/Schachbrett.c

6
build/test/dependencies/cmock.d

@ -1,6 +0,0 @@
build/test/out/c/cmock.o: \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/cmock/src/cmock_internals.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

4
build/test/dependencies/test_Bauer.d

@ -1,4 +0,0 @@
build/test/out/c/test_Bauer.o: test/test_Bauer.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \
src/Schachbrett.h src/Spieler.h src/Bauer.h src/spieler.h

4
build/test/dependencies/test_Bauer_runner.d

@ -1,4 +0,0 @@
build/test/out/c/test_Bauer_runner.o: \
build/test/runners/test_Bauer_runner.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

4
build/test/dependencies/test_Input.d

@ -1,4 +0,0 @@
build/test/out/c/test_Input.o: test/test_Input.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \
src/Input.h

4
build/test/dependencies/test_Input_runner.d

@ -1,4 +0,0 @@
build/test/out/c/test_Input_runner.o: \
build/test/runners/test_Input_runner.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

4
build/test/dependencies/test_Moving.d

@ -1,4 +0,0 @@
build/test/out/c/test_Moving.o: test/test_Moving.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \
src/Schachbrett.h src/Moving.h src/spieler.h src/Spieler.h

4
build/test/dependencies/test_Moving_runner.d

@ -1,4 +0,0 @@
build/test/out/c/test_Moving_runner.o: \
build/test/runners/test_Moving_runner.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

4
build/test/dependencies/test_Schachbrett.d

@ -1,4 +0,0 @@
build/test/out/c/test_Schachbrett.o: test/test_Schachbrett.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \
src/Schachbrett.h

4
build/test/dependencies/test_Schachbrett_runner.d

@ -1,4 +0,0 @@
build/test/out/c/test_Schachbrett_runner.o: \
build/test/runners/test_Schachbrett_runner.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

4
build/test/dependencies/unity.d

@ -1,4 +0,0 @@
build/test/out/c/unity.o: \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

BIN
build/test/out/c/Bauer.o

BIN
build/test/out/c/Input.o

BIN
build/test/out/c/Moving.o

BIN
build/test/out/c/Schachbrett.o

BIN
build/test/out/c/cmock.o

BIN
build/test/out/c/test_Bauer.o

BIN
build/test/out/c/test_Bauer_runner.o

BIN
build/test/out/c/test_Input.o

BIN
build/test/out/c/test_Input_runner.o

BIN
build/test/out/c/test_Moving.o

BIN
build/test/out/c/test_Moving_runner.o

BIN
build/test/out/c/test_Schachbrett.o

BIN
build/test/out/c/test_Schachbrett_runner.o

BIN
build/test/out/c/unity.o

BIN
build/test/out/test_Bauer.out

BIN
build/test/out/test_Input.out

BIN
build/test/out/test_Moving.out

BIN
build/test/out/test_Schachbrett.out

269
build/test/preprocess/files/test_Bauer.c

@ -1,269 +0,0 @@
#include "src/Bauer.h"
#include "src/Spieler.h"
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Bauer_X_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 2;
int endY = 1;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(24))));}} while(0);
do {if (!(istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(27)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Schlag_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 6;
int startY = 2;
int endX = 5;
int endY = 3;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(46))));}} while(0);
brett[startY][startX] = 'P';
brett[endY][endX] = 'p';
print_Schachfeld(brett,8,8);
do {if (!(istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(53)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Schwarz_Y_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 6;
int endX = 1;
int endY = 5;
Player player = PLAYER_BLACK;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(72))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(75)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Y_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 1;
int endY = 2;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(95))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(98)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_Bauer_Start_Bewegung(void) {
char** brett = Schachbrett_erstellen();
int startX = 2;
int startY = 1;
int endX = 2;
int endY = 3;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(117))));}} while(0);
do {if ((istzugerlaubt_Bauer( brett, startX, startY, endX, endY, player))) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(120)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

67
build/test/preprocess/files/test_Input.c

@ -1,67 +0,0 @@
#include "src/Input.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_getUserInput(void) {
const char *test_input = "a1";
FILE *tempInputFile;
tempInputFile = fopen("temp_input.txt", "w");
fprintf(tempInputFile, "%s\n", test_input);
fclose(tempInputFile);
tempInputFile = freopen("temp_input.txt", "r",
(__acrt_iob_func(0))
);
char *actual_input = getUserInput();
UnityAssertEqualString((const char*)((test_input)), (const char*)((actual_input)), (
((void *)0)
), (UNITY_UINT)(38));
free(actual_input);
fclose(tempInputFile);
remove("temp_input.txt");
}

121
build/test/preprocess/files/test_Moving.c

@ -1,121 +0,0 @@
#include "src/Spieler.h"
#include "src/Moving.h"
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Bauern_bewegen(void) {
char** brett = Schachbrett_erstellen();
int startX = 0;
int startY = 1;
int endX = 0;
int endY = 2;
Player player = PLAYER_WHITE;
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(23))));}} while(0);
machezug( brett, startX, startY, endX, endY, player);
print_Schachfeld(brett,8,8);
UnityAssertEqualNumber((UNITY_INT)(('P')), (UNITY_INT)((brett[2][0])), (
((void *)0)
), (UNITY_UINT)(29), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((brett[1][0])), (
((void *)0)
), (UNITY_UINT)(30), UNITY_DISPLAY_STYLE_INT);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}
void test_istzugerlaubt(void){
char** brett = Schachbrett_erstellen();
int startX = 1;
int startY = 1;
int endX = 1;
int endY = 1;
Player player = PLAYER_WHITE;
do {if (!(istzugerlaubt(brett,startX,startY,endX,endY,player))) {} else {UnityFail( ((" Expected FALSE Was TRUE")), (UNITY_UINT)((UNITY_UINT)(49)));}} while(0);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

63
build/test/preprocess/files/test_Schachbrett.c

@ -1,63 +0,0 @@
#include "src/Schachbrett.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void) {
}
void tearDown(void) {
}
void test_Schachbrett_erstellen(void) {
char** brett = Schachbrett_erstellen();
do {if ((((brett)) !=
((void *)0)
)) {} else {UnityFail( (((" Expected Non-NULL"))), (UNITY_UINT)((UNITY_UINT)((UNITY_UINT)(15))));}} while(0);
UnityAssertEqualNumber((UNITY_INT)(('R')), (UNITY_INT)((brett[0][0])), (
((void *)0)
), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)(('p')), (UNITY_INT)((brett[6][0])), (
((void *)0)
), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT);
UnityAssertEqualNumber((UNITY_INT)((' ')), (UNITY_INT)((brett[4][4])), (
((void *)0)
), (UNITY_UINT)(20), UNITY_DISPLAY_STYLE_INT);
for (int i = 0; i < 8; i++) {
free(brett[i]);
}
free(brett);
}

5
build/test/preprocess/includes/test_Bauer.c

@ -1,5 +0,0 @@
---
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h
- src/Schachbrett.h
- src/Spieler.h
- src/Bauer.h

3
build/test/preprocess/includes/test_Input.c

@ -1,3 +0,0 @@
---
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h
- src/Input.h

5
build/test/preprocess/includes/test_Moving.c

@ -1,5 +0,0 @@
---
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h
- src/Schachbrett.h
- src/Moving.h
- src/Spieler.h

3
build/test/preprocess/includes/test_Schachbrett.c

@ -1,3 +0,0 @@
---
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h
- src/Schachbrett.h

42
build/test/results/test_Bauer.pass

@ -1,42 +0,0 @@
---
:source:
:path: test
:file: test_Bauer.c
:successes:
- :test: test_Bauer_X_Bewegung
:line: 14
:message: ''
:unity_test_time: 0
- :test: test_Bauer_Schlag_Bewegung
:line: 36
:message: ''
:unity_test_time: 0
- :test: test_Bauer_Schwarz_Y_Bewegung
:line: 62
:message: ''
:unity_test_time: 0
- :test: test_Bauer_Y_Bewegung
:line: 85
:message: ''
:unity_test_time: 0
- :test: test_Bauer_Start_Bewegung
:line: 107
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 5
:passed: 5
:failed: 0
:ignored: 0
:stdout:
- " R N B Q K B N R "
- " P P P P P P P P "
- " P "
- " p "
- " "
- " "
- " p p p p p p p p "
- " r n b q k b n r "
:time: 0.17051259998697788

19
build/test/results/test_Input.pass

@ -1,19 +0,0 @@
---
:source:
:path: test
:file: test_Input.c
:successes:
- :test: test_getUserInput
:line: 13
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 1
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- "-> "
:time: 0.030730400001630187

30
build/test/results/test_Moving.pass

@ -1,30 +0,0 @@
---
:source:
:path: test
:file: test_Moving.c
:successes:
- :test: test_Bauern_bewegen
:line: 14
:message: ''
:unity_test_time: 0
- :test: test_istzugerlaubt
:line: 39
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 2
:passed: 2
:failed: 0
:ignored: 0
:stdout:
- " R N B Q K B N R "
- " P P P P P P P "
- " P "
- " "
- " "
- " "
- " p p p p p p p p "
- " r n b q k b n r "
:time: 0.02595009992364794

18
build/test/results/test_Schachbrett.pass

@ -1,18 +0,0 @@
---
:source:
:path: test
:file: test_Schachbrett.c
:successes:
- :test: test_Schachbrett_erstellen
:line: 12
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 1
:passed: 1
:failed: 0
:ignored: 0
:stdout: []
:time: 0.02901870000641793

89
build/test/runners/test_Bauer_runner.c

@ -1,89 +0,0 @@
/* AUTOGENERATED FILE. DO NOT EDIT. */
/*=======Automagically Detected Files To Include=====*/
#include "unity.h"
int GlobalExpectCount;
int GlobalVerifyOrder;
char* GlobalOrderError;
/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_Bauer_X_Bewegung(void);
extern void test_Bauer_Schlag_Bewegung(void);
extern void test_Bauer_Schwarz_Y_Bewegung(void);
extern void test_Bauer_Y_Bewegung(void);
extern void test_Bauer_Start_Bewegung(void);
/*=======Mock Management=====*/
static void CMock_Init(void)
{
GlobalExpectCount = 0;
GlobalVerifyOrder = 0;
GlobalOrderError = NULL;
}
static void CMock_Verify(void)
{
}
static void CMock_Destroy(void)
{
}
/*=======Test Reset Options=====*/
void resetTest(void);
void resetTest(void)
{
tearDown();
CMock_Verify();
CMock_Destroy();
CMock_Init();
setUp();
}
void verifyTest(void);
void verifyTest(void)
{
CMock_Verify();
}
/*=======Test Runner Used To Run Each Test=====*/
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
{
Unity.CurrentTestName = name;
Unity.CurrentTestLineNumber = line_num;
#ifdef UNITY_USE_COMMAND_LINE_ARGS
if (!UnityTestMatches())
return;
#endif
Unity.NumberOfTests++;
UNITY_CLR_DETAILS();
UNITY_EXEC_TIME_START();
CMock_Init();
if (TEST_PROTECT())
{
setUp();
func();
}
if (TEST_PROTECT())
{
tearDown();
CMock_Verify();
}
CMock_Destroy();
UNITY_EXEC_TIME_STOP();
UnityConcludeTest();
}
/*=======MAIN=====*/
int main(void)
{
UnityBegin("test_Bauer.c");
run_test(test_Bauer_X_Bewegung, "test_Bauer_X_Bewegung", 14);
run_test(test_Bauer_Schlag_Bewegung, "test_Bauer_Schlag_Bewegung", 36);
run_test(test_Bauer_Schwarz_Y_Bewegung, "test_Bauer_Schwarz_Y_Bewegung", 62);
run_test(test_Bauer_Y_Bewegung, "test_Bauer_Y_Bewegung", 85);
run_test(test_Bauer_Start_Bewegung, "test_Bauer_Start_Bewegung", 107);
return UnityEnd();
}

81
build/test/runners/test_Input_runner.c

@ -1,81 +0,0 @@
/* AUTOGENERATED FILE. DO NOT EDIT. */
/*=======Automagically Detected Files To Include=====*/
#include "unity.h"
int GlobalExpectCount;
int GlobalVerifyOrder;
char* GlobalOrderError;
/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_getUserInput(void);
/*=======Mock Management=====*/
static void CMock_Init(void)
{
GlobalExpectCount = 0;
GlobalVerifyOrder = 0;
GlobalOrderError = NULL;
}
static void CMock_Verify(void)
{
}
static void CMock_Destroy(void)
{
}
/*=======Test Reset Options=====*/
void resetTest(void);
void resetTest(void)
{
tearDown();
CMock_Verify();
CMock_Destroy();
CMock_Init();
setUp();
}
void verifyTest(void);
void verifyTest(void)
{
CMock_Verify();
}
/*=======Test Runner Used To Run Each Test=====*/
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
{
Unity.CurrentTestName = name;
Unity.CurrentTestLineNumber = line_num;
#ifdef UNITY_USE_COMMAND_LINE_ARGS
if (!UnityTestMatches())
return;
#endif
Unity.NumberOfTests++;
UNITY_CLR_DETAILS();
UNITY_EXEC_TIME_START();
CMock_Init();
if (TEST_PROTECT())
{
setUp();
func();
}
if (TEST_PROTECT())
{
tearDown();
CMock_Verify();
}
CMock_Destroy();
UNITY_EXEC_TIME_STOP();
UnityConcludeTest();
}
/*=======MAIN=====*/
int main(void)
{
UnityBegin("test_Input.c");
run_test(test_getUserInput, "test_getUserInput", 13);
return UnityEnd();
}

83
build/test/runners/test_Moving_runner.c

@ -1,83 +0,0 @@
/* AUTOGENERATED FILE. DO NOT EDIT. */
/*=======Automagically Detected Files To Include=====*/
#include "unity.h"
int GlobalExpectCount;
int GlobalVerifyOrder;
char* GlobalOrderError;
/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_Bauern_bewegen(void);
extern void test_istzugerlaubt(void);
/*=======Mock Management=====*/
static void CMock_Init(void)
{
GlobalExpectCount = 0;
GlobalVerifyOrder = 0;
GlobalOrderError = NULL;
}
static void CMock_Verify(void)
{
}
static void CMock_Destroy(void)
{
}
/*=======Test Reset Options=====*/
void resetTest(void);
void resetTest(void)
{
tearDown();
CMock_Verify();
CMock_Destroy();
CMock_Init();
setUp();
}
void verifyTest(void);
void verifyTest(void)
{
CMock_Verify();
}
/*=======Test Runner Used To Run Each Test=====*/
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
{
Unity.CurrentTestName = name;
Unity.CurrentTestLineNumber = line_num;
#ifdef UNITY_USE_COMMAND_LINE_ARGS
if (!UnityTestMatches())
return;
#endif
Unity.NumberOfTests++;
UNITY_CLR_DETAILS();
UNITY_EXEC_TIME_START();
CMock_Init();
if (TEST_PROTECT())
{
setUp();
func();
}
if (TEST_PROTECT())
{
tearDown();
CMock_Verify();
}
CMock_Destroy();
UNITY_EXEC_TIME_STOP();
UnityConcludeTest();
}
/*=======MAIN=====*/
int main(void)
{
UnityBegin("test_Moving.c");
run_test(test_Bauern_bewegen, "test_Bauern_bewegen", 14);
run_test(test_istzugerlaubt, "test_istzugerlaubt", 39);
return UnityEnd();
}

81
build/test/runners/test_Schachbrett_runner.c

@ -1,81 +0,0 @@
/* AUTOGENERATED FILE. DO NOT EDIT. */
/*=======Automagically Detected Files To Include=====*/
#include "unity.h"
int GlobalExpectCount;
int GlobalVerifyOrder;
char* GlobalOrderError;
/*=======External Functions This Runner Calls=====*/
extern void setUp(void);
extern void tearDown(void);
extern void test_Schachbrett_erstellen(void);
/*=======Mock Management=====*/
static void CMock_Init(void)
{
GlobalExpectCount = 0;
GlobalVerifyOrder = 0;
GlobalOrderError = NULL;
}
static void CMock_Verify(void)
{
}
static void CMock_Destroy(void)
{
}
/*=======Test Reset Options=====*/
void resetTest(void);
void resetTest(void)
{
tearDown();
CMock_Verify();
CMock_Destroy();
CMock_Init();
setUp();
}
void verifyTest(void);
void verifyTest(void)
{
CMock_Verify();
}
/*=======Test Runner Used To Run Each Test=====*/
static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
{
Unity.CurrentTestName = name;
Unity.CurrentTestLineNumber = line_num;
#ifdef UNITY_USE_COMMAND_LINE_ARGS
if (!UnityTestMatches())
return;
#endif
Unity.NumberOfTests++;
UNITY_CLR_DETAILS();
UNITY_EXEC_TIME_START();
CMock_Init();
if (TEST_PROTECT())
{
setUp();
func();
}
if (TEST_PROTECT())
{
tearDown();
CMock_Verify();
}
CMock_Destroy();
UNITY_EXEC_TIME_STOP();
UnityConcludeTest();
}
/*=======MAIN=====*/
int main(void)
{
UnityBegin("test_Schachbrett.c");
run_test(test_Schachbrett_erstellen, "test_Schachbrett_erstellen", 12);
return UnityEnd();
}
Loading…
Cancel
Save