From: Paul K. <pau...@us...> - 2007-02-20 14:17:08
|
Update of /cvsroot/openxcf/cfcUnit/org/cfcunit/framework In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31806/org/cfcunit/framework Modified Files: TestSuite.cfc Log Message: Removed code that was already commented out. Index: TestSuite.cfc =================================================================== RCS file: /cvsroot/openxcf/cfcUnit/org/cfcunit/framework/TestSuite.cfc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TestSuite.cfc 12 Feb 2007 10:04:24 -0000 1.8 --- TestSuite.cfc 20 Feb 2007 14:17:06 -0000 1.9 *************** *** 137,148 **** </cfloop> - <!--- - <cfloop collection="#this#" item="key"> - <cfif IsCustomFunction(this[key])> - <cfset addTestMethod(this[key], names, arguments.testClass)> - </cfif> - </cfloop> - ---> - <cfif ArrayLen(variables.fTests) IS 0> <cfset addTest(warning("No tests found in #testClassName#"))> --- 137,140 ---- *************** *** 215,241 **** <cfreturn TRUE/> - - <!--- - <cfset var param = NULL> - <cfset var i = 0> - - <cfif Left(arguments.method.name, 4) IS "test" - AND StructKeyExists(arguments.method, "returntype") AND arguments.method.returntype IS "void"> - - <cfif NOT ArrayLen(arguments.method.parameters)> - <cfreturn TRUE/> - <cfelse> - <cfloop index="i" from="1" to="#ArrayLen(arguments.method.parameters)#"> - <cfset param = arguments.method.parameters[i]> - <cfif param.required IS TRUE> - <cfreturn FALSE/> - </cfif> - </cfloop> - <cfreturn TRUE/> - </cfif> - </cfif> - - <cfreturn FALSE/> - ---> </cffunction> --- 207,210 ---- *************** *** 245,250 **** <cfargument name="method" type="any" required="true" hint="Method metadata struct"/> - <!---<cfparam name="arguments.method.access" type="string" default="public"/>---> - <cfif isTestMethod(arguments.method) AND ((structKeyExists(arguments.method, "access") AND arguments.method.access IS "public") --- 214,217 ---- |