You could run over the "this" scope to see what the struct key list
contains and if it has variables that aren't methods you would have a
decent idea that you don't have any stray variables floating around
that way.

your test would have to exercise each method in the process; so you
could see when/what new variables are created in the this scope
(perhaps by calling your unit tests) then this testForVars test would
be able to isolate the name of the new variable and what method was
most likely responsible for its' creation.

I don't know how feasible that idea is for all CFC's but it should
work in a nice automated, repeatable fashion.

Bill



On 7/20/05, Peter H <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> Is there a way to test that all local variables in a method have been var
> scoped?
> 
> For the most part I've create a Local pseudo-scope and have been pretty
> careful about using it but it would make me feel a lot more comfortable if
> could test it to be sure.
> 
> Cheers, Pete
> 
> _________________________________________________________________
> Be the first to hear what's new at MSN - sign up to our free newsletters!
> http://www.msn.co.uk/newsletters
> 
> 
> 
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to 
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the 
> email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
> (www.cfxhosting.com).
> 
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
> 
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[email protected]
> 
> 
> 


-- 
[EMAIL PROTECTED]
http://blog.rawlinson.us

If you want Gmail - just ask.


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to