_acs-bootstrap-installer__ad_arg_parser (private)
_acs-bootstrap-installer__ad_arg_parser
Defined in packages/acs-bootstrap-installer/tcl/test/30-apm-load-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ aa_true "Error when allowed argument is not a flag" [catch { ad_arg_parser { one two three } { three } }] aa_true "Error when allowed argument has no value" [catch { ad_arg_parser { one two three } { -three } }] aa_true "Not allowed flag with value throws error" [catch { ad_arg_parser { one two three } { -four value } }] aa_true "Not allowed flag with value is NOT OK when 'args' is there" [catch { ad_arg_parser { one two three args } { -four value } }] aa_false "Extra args when 'args' is there is OK" [catch { ad_arg_parser { one two three args } { arg1 arg2 arg3 } }] aa_false "Allowed flag with value is OK" [catch { ad_arg_parser { one two three } { -three value } }] }} { 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_arg_parser (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