_acs-tcl__ad_decode (private)

 _acs-tcl__ad_decode

Defined in packages/acs-tcl/tcl/test/acs-tcl-test-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) ad_decode ad_decode (public) _acs-tcl__ad_decode _acs-tcl__ad_decode _acs-tcl__ad_decode->aa_equals _acs-tcl__ad_decode->aa_log _acs-tcl__ad_decode->aa_log_result _acs-tcl__ad_decode->ad_decode

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set cases {1 one 2 two 3 three 4 four 5 five 546356 423654 sdgvlrjnevclme sdlgtmsdgvsdf}
    set cases_complete [concat $cases "Unknown"]
    dict for {case result} $cases {
        aa_equals "ad_decode $case $cases_complete return $result" "$result" [ad_decode $case {*}$cases_complete]
    }
    aa_equals "ad_decode gibberish $cases_complete return Unknown" "Unknown" [ad_decode gibberish {*}$cases_complete]

    aa_equals "ad_decode no default, found"     [ad_decode b a 1 b 2] 2
    aa_equals "ad_decode no default, not found" [ad_decode x a 1 b 2] ""
    aa_equals "ad_decode no default, no alternatives" [ad_decode x] ""
}} {
          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" "ad_decode (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: