Skip to content

Commit eed8e8a

Browse files
author
thk123
committed
Adding function header for constructors
1 parent 1ca80f0 commit eed8e8a

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

src/test-c-gen/c_test_case_generator.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@
3131
/*******************************************************************\
3232
Function: c_test_case_generatort::c_test_case_generatort
3333
Inputs:
34-
options - Command line options passed to the interpreter
35-
symbol_table - The symbol table for the GOTO program
36-
goto_functions - The GOTO program
37-
tests - The tests (e.g. traces) to create
34+
_message_handler - The message handler to report any messages with
35+
options - Command line options passed to the interpreter
36+
symbol_table - The symbol table for the GOTO program
37+
goto_functions - The GOTO program
38+
tests - The tests (e.g. traces) to create
39+
test_index - The index of the test (used to name the tests)
40+
using_test_main - Should the test use a specially named main method
41+
for its entry point
3842
Purpose: To generate all the tests described in this generator.
3943
\*******************************************************************/
4044
c_test_case_generatort::c_test_case_generatort(

src/test-c-gen/c_unity_test_case_generator.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
#include <algorithm>
1515
#include <util/config.h>
1616

17+
/*******************************************************************\
18+
Function: c_unity_test_case_generatort::c_unity_test_case_generatort
19+
Inputs:
20+
_message_handler - The message handler to report any messages with
21+
options - Command line options passed on to the interpreter
22+
symbol_table - The symbol table of the program
23+
goto_functions - The goto functions of the program
24+
test - The details of the test run we are trying to generate
25+
test_index - The index of the test (used to name the tests)
26+
using_test_main - Should the test use a specially named main method
27+
for its entry point
28+
Purpose: Generate test code in the Unity framework style.
29+
\*******************************************************************/
1730
c_unity_test_case_generatort::c_unity_test_case_generatort(
1831
message_handlert &_message_handler,
1932
const optionst &options,

0 commit comments

Comments
 (0)