_acs-templating__validate_oneof (private)
_acs-templating__validate_oneof
Defined in packages/acs-templating/tcl/test/data-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 {{ set message "" set values "" array set element {options {{zero 0} {one 1} {two 2} {three 3}}} set value_true {0 1 2 3} set value_false {zero null nope 4 ""} foreach value $value_true { aa_true "Is $value in the list of values?" [template::data::validate oneof value message] } foreach value $value_false { aa_false "Is $value in the list of values?" [template::data::validate oneof value message] } }} { 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" "validate_oneof (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle