_acs-bootstrap-installer__apm_parse_catalog_path (private)

 _acs-bootstrap-installer__apm_parse_catalog_path

Defined in packages/acs-bootstrap-installer/tcl/test/30-apm-load-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) apm_parse_catalog_path apm_parse_catalog_path (public) _acs-bootstrap-installer__apm_parse_catalog_path _acs-bootstrap-installer__apm_parse_catalog_path _acs-bootstrap-installer__apm_parse_catalog_path->aa_equals _acs-bootstrap-installer__apm_parse_catalog_path->aa_log _acs-bootstrap-installer__apm_parse_catalog_path->aa_log_result _acs-bootstrap-installer__apm_parse_catalog_path->apm_parse_catalog_path

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
        set path acs-kernel/catalog/acs-kernel.en_US.ISO-8859-1.xml
        set file_info [apm_parse_catalog_path $path]
        set expected {locale en_US package_key acs-kernel charset ISO-8859-1 prefix {}}

        foreach key {package_key prefix locale charset} {
            aa_equals "'$key' from path '$path' extracted"  [dict get $file_info $key] [dict get $expected $key]
        }

        set path my-package/no-catalog/acs-kernel.en_US.ISO-8859-1.xml
        set file_info [apm_parse_catalog_path $path]
        aa_equals "Result from path '$path' is empty"  $file_info ""

        set path acs-kernel/catalog/prefix-acs-kernel.en_US.UTF-8.xml
        set file_info [apm_parse_catalog_path $path]
        set expected {locale en_US package_key acs-kernel charset UTF-8 prefix {prefix-}}

        foreach key {package_key prefix locale charset} {
            aa_equals "'$key' from path '$path' extracted"  [dict get $file_info $key] [dict get $expected $key]
        }
    }} {
          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" "apm_parse_catalog_path (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
Generic XQL file:
packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs.xql

PostgreSQL XQL file:
packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs-postgresql.xql

Oracle XQL file:
packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: