_acs-tcl__util_memoize_cache_script (private)

 _acs-tcl__util_memoize_cache_script

Defined in packages/acs-tcl/tcl/test/memoizing-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) util_memoize util_memoize (public) util_memoize_cached_p util_memoize_cached_p (public) _acs-tcl__util_memoize_cache_script _acs-tcl__util_memoize_cache_script _acs-tcl__util_memoize_cache_script->aa_equals _acs-tcl__util_memoize_cache_script->aa_log _acs-tcl__util_memoize_cache_script->aa_log_result _acs-tcl__util_memoize_cache_script->util_memoize _acs-tcl__util_memoize_cache_script->util_memoize_cached_p

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        aa_log "caching a script"
        set script {
            set x 1
            set y 2
            expr {$x + $y}
        }
        set r [util_memoize $script]
        aa_equals "the script was executed successfully via util_memoize" $r 3

        set success_p [util_memoize_cached_p $script]
        aa_equals "the script is recognized as being cached" $success_p 1
    }} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "util_memoize_cache_script (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: