acs-tcl-test-procs.tcl

  • last updated 3 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add new proc 'util::content_size_pretty', to prettify data size given in bytes, and its automated tests.

It supports both binary and decimal representations, a resolution up to YB/YiB, and setting the precision via parameter.

It should replace ad-hoc size prettyfication done manually in several places of the codebase.

  1. … 1 more file in changeset.
remove duplicated test case

Follow redirect to handle the vanilla dotlrn use case

whitespace changes

  1. … 1 more file in changeset.
automated tests: fix broken argument in test case

Relax the test as some homepages might redirect to the login page and little assumptions can be made about the content (fixes vanilla dotlrn case)

improve spelling

  1. … 13 more files in changeset.
Fix regression in 'if_no_rows' idiom for db_foreach, document alternative syntax, create a test for db_foreach main functionalities

  1. … 1 more file in changeset.
Proc "util_get_subset_missing": make sure to return the found elements.

Added test case for this proc.

  1. … 1 more file in changeset.
Make test locale-aware

whitespace cleanup

  1. … 11 more files in changeset.
correct the name of the tested proc

extend regression test

Provide tests for public procs: min and max

Provide tests for public procs: util_escape_quotes_for_csv

Provide tests for public procs: util_commify_number

Refactor test case for util_absolute_path_p

Provide tests for public procs: util_complete_url_p

Provide tests for public procs: util_absolute_path_p

Provide tests for public procs: util::trim_leading_zeros

Whitespace changes

Mention explicitly the tested procs in the test cases.

prefer acs:test functions over twt

  1. … 1 more file in changeset.
make tested API calls explicit

  1. … 2 more files in changeset.
remove useless semicolon

no reason for casting values to integer

incr would return a decimal number, but test wants an integer to be returned. Restore expr and make clear that we want an integer out of it

replace "expr" by "incr"

improve testcases by removing useless expr commands

  1. … 5 more files in changeset.
Port from downstream cache transaction logics and fix automated test as now db_transaction will return 0 instead of the empty string (and no particular return value should be assumed)

  1. … 1 more file in changeset.