_acs-templating__read_write_file (private)

 _acs-templating__read_write_file

Defined in packages/acs-templating/tcl/test/util-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) template::util::read_file template::util::read_file (public) template::util::write_file template::util::write_file (public) _acs-templating__read_write_file _acs-templating__read_write_file _acs-templating__read_write_file->aa_equals _acs-templating__read_write_file->aa_log _acs-templating__read_write_file->aa_log_result _acs-templating__read_write_file->template::util::read_file _acs-templating__read_write_file->template::util::write_file

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set tmpfile [ns_config ns/parameters tmpdir]/__test_acs_templating_read_write_file.txt

    foreach v {
        avalue
        anötervalue
        1234
        &scene
    } {
        template::util::write_file $tmpfile $v
        aa_equals "In/out from file returns the same"  [template::util::read_file $tmpfile$v
    }
}} {
          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" "read_write_file (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: