Module:Util/doc: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 m (→Structure) |
>Voiza m (→Structure) |
||
Line 9: | Line 9: | ||
|- | |- | ||
! util.cast | ! util.cast | ||
| utilities for casting values (i.e. from arguments | | utilities for casting values (i.e. from arguments) | ||
|- | |- | ||
! util.html | ! util.html |
Revision as of 08:32, 6 November 2017
This is a meta module.
This module is meant to be used only by other modules. It should not be invoked in wikitext.
Overview
Provides utility functions for programming modules.
Structure
Group | Description |
---|---|
util.cast | utilities for casting values (i.e. from arguments) |
util.html | shorthand functions for creating some html tags |
util.misc | miscellaneous functions |
Tests
All tests passed.
Name | Expected | Actual | |
---|---|---|---|
test_args_from_cargo_maps__cast_valid_fields | |||
test_args_from_cargo_maps__default_function | |||
test_args_from_cargo_maps__default_value | |||
test_args_from_cargo_maps__error_missing_in_fields | |||
test_args_from_cargo_maps__error_missing_in_order | |||
test_args_from_cargo_maps__func | |||
test_args_from_cargo_maps__name | |||
test_args_stats__errors | |||
test_args_stats__min_max | |||
test_args_stats__value | |||
test_args_version__ignore_unknowns_success | |||
test_args_version__misformatted_release_version | |||
test_args_version__success | |||
test_cast_boolean | |||
test_cast_number | |||
test_cast_number__error_invalid_number | |||
test_cast_number__error_max | |||
test_cast_number__error_min | |||
test_cast_number__invalid_with_default | |||
test_cast_replace_if_match__argsnotpresent | |||
test_cast_replace_if_match__ignorequestionmark_match | |||
test_cast_replace_if_match__ignorequestionmark_nomatch | |||
test_cast_replace_if_match__numericmatchnotpresent | |||
test_cast_replace_if_match__numericmatchpresent | |||
test_cast_replace_if_match__patternnotpresent | |||
test_cast_replace_if_match__replacewithnotpresent | |||
test_cast_replace_if_match__stringmatchnotpresent | |||
test_cast_replace_if_match__stringmatchpresent | |||
test_cast_table_from_split_args_string | |||
test_cast_table_from_split_args_string_custom_delimiter | |||
test_cast_table_from_string | |||
test_cast_table_from_string_custom_delimiter | |||
test_cast_table_from_table | |||
test_formatted_value_01 | |||
test_formatted_value_02 | |||
test_formatted_value_03 | |||
test_formatted_value_04 | |||
test_formatted_value_05 | |||
test_formatted_value_06 | |||
test_formatted_value_07 | |||
test_formatted_value_08 | |||
test_formatted_value_09 | |||
test_formatted_value_10 | |||
test_formatted_value_11 | |||
test_formatted_value_12 | |||
test_html_abbr | |||
test_html_error__with_msg | |||
test_html_error__without_msg | |||
test_misc_add_category__blacklisted | |||
test_misc_add_category__success | |||
test_misc_get_frame | |||
test_misc_is_frame | |||
test_string_split_args | |||
test_table_find_in_nested_array__assoc | |||
test_trim |