_acs-tcl__ad_proc_fire_callback (private)
_acs-tcl__ad_proc_fire_callback
Defined in packages/acs-tcl/tcl/test/ad-proc-test-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 "throws error for invalid arguments even if no implementations" [catch {callback c_callback bar} error] aa_true "callback returns empty list with no implementations" {[llength [callback b_callback -arg1 foo bar]] == 0} set foo(test) 2 aa_silence_log_entries -severities warning { aa_true "callback returns value for each defined callback and catches the error callback" {[llength [callback -catch a_callback -arg1 foo bar]] == 2} } aa_true "callback returns correct value for specified implementation" {[callback -impl an_impl1 a_callback -arg1 foo bar] == 1} aa_true "callback returns correct value for an array ref" {[callback -impl an_impl2 a_callback -arg1 foo bar] == 2} aa_true "callback works with {} args" {[callback -impl an_impl2 a_callback -arg1 {} {}] == {}} aa_true "callback errors with missing arg" {[catch {callback -impl an_impl2 a_callback -arg1 foo} err] == 1} aa_true "throws error for invalid arguments with implementations" [catch {callback a_callback bar} error] aa_true "throws error when a non-existent implementation is specified" [catch {callback -impl non_existent a_callback -arg1 foo bar} error] aa_true "throws error without -catch when an error occurs in a callback" [catch {callback a_callback -arg1 foo bar} error] set x [catch {callback -impl an_impl2 a_callback -arg1 foo {[aa_test_EvilCallback]}} error] aa_false "EvilCallback not invoked returned $error" $x set x [catch {callback -impl an_impl2 a_callback -arg1 {[aa_test_EvilCallback]} bar} error] aa_false "EvilCallback not invoked returned $error" $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_proc_fire_callback (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle