PageRenderTime 262ms CodeModel.GetById 120ms app.highlight 1ms RepoModel.GetById 140ms 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
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="test_1">
 4		<cfset assert_obfuscation(1)>
 5	</cffunction>
 6
 7	<cffunction name="test_99">
 8		<cfset assert_obfuscation(99)>
 9	</cffunction>
10
11	<cffunction name="test_15765">
12		<cfset assert_obfuscation(15765)>
13	</cffunction>
14
15	<cffunction name="test_69247541">
16		<cfset assert_obfuscation(69247541)>
17	</cffunction>
18
19	<cffunction name="test_0413">
20		<cfset assert_obfuscation(0413)>
21	</cffunction>
22	
23	<cffunction name="test_400">
24		<cfset assert_obfuscation(400)>
25	</cffunction>
26
27	<cffunction name="test_per">
28		<cfset assert_obfuscation("per")>
29	</cffunction>
30	
31	<cffunction name="test_becca2515">
32		<cfset assert_obfuscation("becca2515")>
33	</cffunction>
34	
35	<cffunction name="test_a15ba9">
36		<cfset assert_obfuscation("a15ba9")>
37	</cffunction>
38	
39	<cffunction name="assert_obfuscation">
40		<cfargument name="o" type="any" required="true">
41		<cfset loc.args = arguments>
42		<cfset loc.o = obfuscateParam(loc.args.o)>
43		<cfset loc.d = deobfuscateParam(loc.o)>
44		<cfset assert('loc.d eq loc.args.o')>
45	</cffunction>
46
47</cfcomponent>