_acs-tcl__page_contracts (private)

 _acs-tcl__page_contracts

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_silence_log_entries aa_silence_log_entries (public) acs_root_dir acs_root_dir (public) ad_include_contract ad_include_contract (public) _acs-tcl__page_contracts _acs-tcl__page_contracts _acs-tcl__page_contracts->aa_log _acs-tcl__page_contracts->aa_log_result _acs-tcl__page_contracts->aa_silence_log_entries _acs-tcl__page_contracts->acs_root_dir _acs-tcl__page_contracts->ad_include_contract

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        set page {
            ad_include_contract {
                Test Contract
            } {
                integer:integer,notnull
            }
        }
        set test_data {
            {
                integer abc
            }
            true

            {
                integer ""
            }
            true

            {
                integer 1
            }
            false
        }

        foreach {vars outcome} $test_data {
            set wfd [ad_opentmpfile tmpfile .tcl]
            puts -nonewline $wfd $page
            close $wfd

            set path /packages/acs-automated-testing/www/[file rootname [file tail $tmpfile]]
            set callable_tmpfile [acs_root_dir]${path}.tcl
            file rename -- $tmpfile $callable_tmpfile

            aa_$outcome "Template failure is $outcome?" [catch {
                #
                # The template is inflated in a background job so to
                # not tamper with the actual request in case of error.
                #
                aa_silence_log_entries -severities warning {
                    set result [ad_job template::adp_include $path $vars]
                }
            }]
            file delete -- $callable_tmpfile
        }
    }} {
          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" "page_contracts (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: