_ref-countries__get_country_code (private)

 _ref-countries__get_country_code

Defined in packages/ref-countries/tcl/test/ref-countries-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) ref_countries::get_country_code ref_countries::get_country_code (public) _ref-countries__get_country_code _ref-countries__get_country_code _ref-countries__get_country_code->aa_equals _ref-countries__get_country_code->aa_log _ref-countries__get_country_code->aa_log_result _ref-countries__get_country_code->ref_countries::get_country_code

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    #
    # Check a list of countries
    #
    set countries {England GB "Great Britain" GB Spain ES "Côte d'Ivoire" CI "Western Sahara" EH}
    dict for {country code} $countries {
        aa_equals "Country code for $country:" "[ref_countries::get_country_code -country $country]" "$code"
    }
}} {
          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" "get_country_code (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: