_acs-tcl__acs_icanuse (private)

 _acs-tcl__acs_icanuse

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) aa_true aa_true (public) acs::icanuse acs::icanuse (public) _acs-tcl__acs_icanuse _acs-tcl__acs_icanuse _acs-tcl__acs_icanuse->aa_log _acs-tcl__acs_icanuse->aa_log_result _acs-tcl__acs_icanuse->aa_run_with_teardown _acs-tcl__acs_icanuse->aa_true _acs-tcl__acs_icanuse->acs::icanuse

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        aa_run_with_teardown  -test_code {
                set label [ad_generate_random_string]
                #
                # The random label should not exist
                #
                aa_true "can i use a random string?" {[acs::icanuse $label] == 0}
                #
                # Register the label
                #
                ::acs::register_icanuse $label 1
                #
                # Now we should be able to use it.
                #
                aa_true "can i use a random string?" [acs::icanuse $label]


            }  -teardown_code {
                unset ::acs::caniuse($label)
            }
    }} {
          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" "acs_icanuse (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: