You could iterate over AccountController's fields and check the class of the error with the class of
the closure defined on that field.
~~ Robert.
Mike Hugo wrote:
> I'm trying to add an enhancement to the code-coverage plugin that would
> show the name of a closure in the coverage reports.
>
> So for instance, right now the reports show:
> AccountController$_closure1
> AccountController$_closure2
> AccountController$_closure3
> etc...
>
> I'd like it to show
> AccountController.list
> AccountController.edit
> AccountController.create
> etc...
>
> Any thoughts on how I could do this? I'm guessing I will have to do
> some post processing of the reports, but I'm not positive on how to line
> up AccountController$_closure1 with AccountController.list
>
> This might be a topic for the Groovy list, but I thought I'd start
> here. Any ideas?
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
>
--
~~ Robert Fischer.
Smokejumper Consulting
http://smokejumperit.comEnfranchised Mind Blog
http://enfranchisedmind.com/blogLinkedIn Profile
http://www.linkedin.com/in/robertfischerTwitter Feed
http://twitter.com/robertfischer---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email