_acs-lang__lang_messages_correct (private)

 _acs-lang__lang_messages_correct

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

Partial Call Graph (max 5 caller/called nodes):
%3 aa_false aa_false (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_run_with_teardown aa_run_with_teardown (public) db_foreach db_foreach (public) _acs-lang__lang_messages_correct _acs-lang__lang_messages_correct _acs-lang__lang_messages_correct->aa_false _acs-lang__lang_messages_correct->aa_log _acs-lang__lang_messages_correct->aa_log_result _acs-lang__lang_messages_correct->aa_run_with_teardown _acs-lang__lang_messages_correct->db_foreach

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    aa_run_with_teardown -rollback -test_code {
        db_foreach get_message_keys {
            select message_key, package_key, locale, message
            from lang_messages
            where not deleted_p
              and locale in (select locale from ad_locales where enabled_p)
        } {
            set error_p [catch {lang::message::check $locale $package_key $message_key $message} errmsg]
            set errmsg [expr {$error_p ? ": $errmsg" : ""}]
            aa_false "Message $message_key in package $package_key for locale $locale correct$errmsg" $error_p
        }
    }
}} {
          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" "lang_messages_correct (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: