PageRenderTime 35ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/tests/global/public/obfuscation.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 47 lines | 36 code | 11 blank | 0 comment | 0 complexity | 6038beadfcfe6b7706a71cbdab5f666f MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="test_1">
  3. <cfset assert_obfuscation(1)>
  4. </cffunction>
  5. <cffunction name="test_99">
  6. <cfset assert_obfuscation(99)>
  7. </cffunction>
  8. <cffunction name="test_15765">
  9. <cfset assert_obfuscation(15765)>
  10. </cffunction>
  11. <cffunction name="test_69247541">
  12. <cfset assert_obfuscation(69247541)>
  13. </cffunction>
  14. <cffunction name="test_0413">
  15. <cfset assert_obfuscation(0413)>
  16. </cffunction>
  17. <cffunction name="test_400">
  18. <cfset assert_obfuscation(400)>
  19. </cffunction>
  20. <cffunction name="test_per">
  21. <cfset assert_obfuscation("per")>
  22. </cffunction>
  23. <cffunction name="test_becca2515">
  24. <cfset assert_obfuscation("becca2515")>
  25. </cffunction>
  26. <cffunction name="test_a15ba9">
  27. <cfset assert_obfuscation("a15ba9")>
  28. </cffunction>
  29. <cffunction name="assert_obfuscation">
  30. <cfargument name="o" type="any" required="true">
  31. <cfset loc.args = arguments>
  32. <cfset loc.o = obfuscateParam(loc.args.o)>
  33. <cfset loc.d = deobfuscateParam(loc.o)>
  34. <cfset assert('loc.d eq loc.args.o')>
  35. </cffunction>
  36. </cfcomponent>