Remove unnecessary tests from the lua profiles
This commit is contained in:
parent
3fb6c0f83e
commit
3f3940a7b3
2 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,11 @@ namespace AspectedRouting.IO.LuaSkeleton
|
||||||
{
|
{
|
||||||
return _functionImplementations;
|
return _functionImplementations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool ContainsFunction(string name)
|
||||||
|
{
|
||||||
|
return _alreadyAddedFunctions.Contains(name);
|
||||||
|
}
|
||||||
|
|
||||||
public void AddDependenciesFor(IExpression e)
|
public void AddDependenciesFor(IExpression e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -103,6 +103,12 @@ namespace AspectedRouting.IO.itinero1
|
||||||
private string GenerateAspectTestSuite(AspectTestSuite testSuite)
|
private string GenerateAspectTestSuite(AspectTestSuite testSuite)
|
||||||
{
|
{
|
||||||
var fName = testSuite.FunctionToApply.Name;
|
var fName = testSuite.FunctionToApply.Name;
|
||||||
|
|
||||||
|
if (!_skeleton.ContainsFunction(fName))
|
||||||
|
{
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
var tests =
|
var tests =
|
||||||
testSuite.Tests
|
testSuite.Tests
|
||||||
.Select((test, i) => GenerateAspectUnitTestCall(fName, i, test.expected, test.tags))
|
.Select((test, i) => GenerateAspectUnitTestCall(fName, i, test.expected, test.tags))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue