-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Units: added tests for Function::Parameters parser (#2868)
* Added tests for Function::Parameters parser * Removed Python tests * Removed whitespace Co-authored-by: Jim Butler <jim.butler@endurance.com>
- Loading branch information
1 parent
0ccd81f
commit 70677d3
Showing
4 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fun input.c /^int fun(void)$/;" f typeref:typename:int | ||
method input.c /^int method(void)$/;" f typeref:typename:int | ||
sub input.c /^int sub(void)$/;" f typeref:typename:int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
int method(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
int sub(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
int fun(void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Jim::Butler input.pl /^package Jim::Butler;$/;" p | ||
my_function input.pl /^fun my_function() {}$/;" f | ||
my_method input.pl /^method my_method() {}$/;" m | ||
my_subroutine input.pl /^sub my_subroutine {}$/;" s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package Jim::Butler; | ||
|
||
use Function::Parameters; | ||
|
||
method my_method() {} | ||
|
||
fun my_function() {} | ||
|
||
sub my_subroutine {} | ||
|
||
1; |