_xowiki__web_callable_methods_naming (private)
_xowiki__web_callable_methods_naming
Defined in packages/xowiki/tcl/test/check-method-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 count 0 foreach cl [concat [::xowiki::Page info subclass -closure] [::xowiki::Package info subclass -closure] ] { foreach m [lsort [$cl info instprocs www-*]] { incr count regexp {www[-](.*)$} $m . suffix set wrong [regexp {[^a-z0-9-]} $suffix] aa_false "web callable method '$cl instproc $m' does not follow naming guidelines (just lowercase, digit and dash)" $wrong } } aa_log "Checked $count web callable methods" }} { 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" "web_callable_methods_naming (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle