_acs-lang__test_localize_list_of_lists (private)

 _acs-lang__test_localize_list_of_lists

Defined in packages/acs-lang/tcl/test/lang-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) db_foreach db_foreach (public) lang::util::localize lang::util::localize (public) _acs-lang__test_localize_list_of_lists _acs-lang__test_localize_list_of_lists _acs-lang__test_localize_list_of_lists->aa_equals _acs-lang__test_localize_list_of_lists->aa_log _acs-lang__test_localize_list_of_lists->aa_log_result _acs-lang__test_localize_list_of_lists->db_foreach _acs-lang__test_localize_list_of_lists->lang::util::localize

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        set list_of_lists [list]
        set list_of_expected [list]
        db_foreach get_messages {
            select message_key, package_key
            from lang_message_keys
            where package_key = 'acs-lang'
            fetch first 10 rows only
        } {
            lappend list_of_lists [list  "Test 1 #${package_key}.${message_key}#"  "Test 2 #${package_key}.${message_key}#"  "Test 3 #${package_key}.${message_key}#"]
            lappend list_of_expected [list  [lang::util::localize "Test 1 #${package_key}.${message_key}#"]  [lang::util::localize "Test 2 #${package_key}.${message_key}#"]  [lang::util::localize "Test 3 #${package_key}.${message_key}#"]]
        }

        set result [lang::util::localize_list_of_lists -list $list_of_lists]

        foreach r $result e $list_of_expected {
            aa_equals "Result is expected"  $r $e
        }
    }} {
          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" "test_localize_list_of_lists (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: