GitHub Package
the javascript
36 - Turn-On, Turn-Off, and Show TypeCzech Counts

TypeCzech can stop and start checking parameters with: TypeCzech defaults to checking parameters when initilized. Show the number of errors and checks found with: Once TypeCzech is logging or throwing errors from checking functions, then the only way to stop the test exceptions or console logging is to is use the type_czech.disableTests() function. From then on all PRE and POST checking functions will not report errors, but will still consume a non-trivial amount of resources. So never use type_czech.disableTests() in production.

Note that enableTests() cannot start TypeCzech function checking from a non-active TypeCzech instance. Also enableTests() resets test counting to 0.

Console Output



Contents 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43    101 102 103 201 202 203 204 301 302 303 304 401 402 403 404 501 502 503 504 601 602 603 604    700 701 702 703 704 705 706 707 708 709 710 © 2024 Steen Hansen