escapevelocity icon indicating copy to clipboard operation
escapevelocity copied to clipboard

Added a Unit Test to increase code coverage

Open TheRealHaui opened this issue 2 years ago • 1 comments

Added a Unit Test to increase code coverage

TheRealHaui avatar Dec 05 '22 18:12 TheRealHaui

Thanks!

I'm all for increasing code coverage, but I wonder if the same effect might be achieved more simply by adding a new test method to TemplateTest. I think the idea here is that the in parameter to ForEachNode isn't iterable, which should get an exception. Could we test evaluating a template like this?

#foreach ($i in 2853)
#if (2853) 2853 #else 2853 #end
#end

I think that's equivalent?

eamonnmcmanus avatar Dec 05 '22 18:12 eamonnmcmanus