_acs-tcl__util__interval_pretty (private)

 _acs-tcl__util__interval_pretty

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) aa_true aa_true (public) util::interval_pretty util::interval_pretty (public) _acs-tcl__util__interval_pretty _acs-tcl__util__interval_pretty _acs-tcl__util__interval_pretty->aa_equals _acs-tcl__util__interval_pretty->aa_log _acs-tcl__util__interval_pretty->aa_log_result _acs-tcl__util__interval_pretty->aa_true _acs-tcl__util__interval_pretty->util::interval_pretty

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set convert_seconds {6344 "1h 45m 44s" 433 "7m 13s" 5556 "1h 32m 36s" 234 "3m 54s" 23 "23s" 604800 "168h 0m 0s"}
    dict for {seconds result} $convert_seconds {
        aa_true "util::interval_pretty $seconds return $result " {[util::interval_pretty -seconds $seconds] eq $result }
    }
    aa_equals "Empty seconds" [util::interval_pretty -seconds """"
    aa_equals "No arguments" [util::interval_pretty""
}} {
          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" "util__interval_pretty (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: