Skip to content
Permalink
Browse files

Eliminate duplicate test cases when overloaded methods are encountered

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5236 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Apr 9, 2006
1 parent cafc235 commit 5412764447c084216e092aaab23c893b179917fd
Showing with 14 additions and 5 deletions.
  1. +14 −5 tests/src/core/test_builder.pl
@@ -32,6 +32,7 @@
print "Stubs will be created for the following methods:\n";
open CPPFILE, "<../../../src/core/$testClassLowerCaseName.cpp"|| die 'Unable to open header file $testClassLowerCaseName.cpp';
$stubString="";
$lastLine="";
while(<CPPFILE>)
{
if(m/${testClass}::[A-Za-z0-9]*\(/)
@@ -42,11 +43,19 @@
$line =~ s/:://g;
#strip off the (
$line =~ s/\(//g;
#add it to our stub code
$stubString = $stubString . " void $line()\n\(\n\n\)\n";
#show the user the list
print $line;
print "\n";
if ($lastLine eq $line)
{
#duplicate entry
}
else
{
#add it to our stub code
$stubString = $stubString . " void $line()\n\{\n\n\};\n";
#show the user the list
print $line;
print "\n";
}
$lastLine=$line;
}
}
print "-----------------------------\n";

0 comments on commit 5412764

Please sign in to comment.
You can’t perform that action at this time.