モジュール:Unitest Scribunto/doc
提供: ひつじ小屋別館2代目
このページは、モジュール:Unitest Scribuntoの説明文を記述するページです。
- This module run some tests about Scribunto or Lua.
- unitest_wwwww : function giving environment to document other tests, Where When What We Work.
- Wiki and page under test.
- Mediawiki version and revision universal time.
- Universal runtime and namespaces.
- doctable_frame_args, doctable_frame, doctable_mw : functions to list the contents of tables
- levelmaxi : parameter to limit the number of levels of sub-tables. (default 99)
- exclude1 exclude2, exclude3 : parameters to exclude the sub-tables if exclude1... is in there names.
目次
unitest_wwwww
{{#invoke:Unitest Scribunto | unitest_wwwww }}
- Page tested = http://littleprincess.sakura.ne.jp/mediawiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Unitest_Scribunto/doc
- Mediawiki 1.27.0 - UTC revision time 2014-03-30 11:58:51 - Lua 5.1
- Server runtime UTC 2024-11-24 19:34:05, namespace=モジュール
unitest
{{#invoke:Unitest Scribunto | unitest }}
* Init of unit tests. test_list = table
* Begin of unit tests :
- Page tested = http://littleprincess.sakura.ne.jp/mediawiki/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Unitest_Scribunto/doc
- Mediawiki 1.27.0 - UTC revision time 2014-03-30 11:58:51 - Lua 5.1
- Server runtime UTC 2024-11-24 19:34:06, namespace=モジュール
1 frame.args Test OK : frame.args.lastname = "error".
2 sub table write OK Test OK : sub table write OK. / / / result OKOK ; exec_ok=true ; value_ok=true ; var_tested=td.C.X ; value_before=xx ; value_after=okvalue ; A=aa ; Y=yy .
3 sub table write XX Test OK : sub table write OK. / / / result OKOK ; exec_ok=true ; value_ok=true ; var_tested=td.C.X ; value_before=okvalue ; value_after=okvalue ; A=aa ; Y=yy .
- End of unit tests. Statistic count : Nerr=0 / Ntests=3
doctable_frame_args
{{#invoke:Unitest Scribunto | doctable_frame_args | exclude1=space }}
- Content of the frame_args table, begin : levelmaxi=99 exclude1=space exclude2=nil exclude3=nil
- Table .frame_args vars : string - exclude1 = space,
- Table .frame_args no functions.
- Table .frame_args no sub-tables.
- Content of the frame_args table, end.
doctable_frame
{{#invoke:Unitest Scribunto | doctable_frame | levelmaxi=2 | exclude1=space }}
- Content of the frame table, begin : levelmaxi=2 exclude1=space exclude2=nil exclude3=nil
- Table .frame no vars.
- Table .frame functions : newTemplateParserValue, getParent, argumentPairs, extensionTag, callParserFunction, preprocess, getTitle, newParserValue, expandTemplate, getArgument, newChild,
- Table .frame tables list : args,
- Table .frame.args vars : string - levelmaxi = 2, string - exclude1 = space,
- Table .frame.args no functions.
- Table .frame.args no sub-tables.
- Content of the frame table, end.
doctable_mw without (name)space(s)
{{#invoke:Unitest Scribunto | doctable_mw | levelmaxi= | exclude1=space }}
- Content of the mw table, begin : levelmaxi=99 exclude1=space exclude2=nil exclude3=nil
- Table .mw no vars.
- Table .mw functions : incrementExpensiveFunctionCount, log, getLanguage, allToString, executeFunction, logObject, isSubsting, loadData, clone, dumpObject, getCurrentFrame, getContentLanguage,
- Table .mw tables list : html, language, text, ustring, message, site, title, ext, uri,
- Table .mw.html no vars.
- Table .mw.html functions : create,
- Table .mw.html no sub-tables.
- Table .mw.language no vars.
- Table .mw.language functions : isValidCode, getFallbacksFor, isSupportedLanguage, new, fetchLanguageNames, isValidBuiltInCode, fetchLanguageName, isKnownLanguageTag, getContentLanguage,
- Table .mw.language no sub-tables.
- Table .mw.text vars : number - JSON_PRETTY = 4, number - JSON_PRESERVE_KEYS = 1, number - JSON_TRY_FIXING = 2,
- Table .mw.text functions : listToText, gsplit, nowiki, encode, decode, jsonEncode, truncate, trim, killMarkers, tag, unstripNoWiki, split, jsonDecode, unstrip,
- Table .mw.text no sub-tables.
- Table .mw.ustring vars : number - maxPatternLength = 10000, number - maxStringLength = 2097152,
- Table .mw.ustring functions : byteoffset, isutf8, match, gmatch, upper, gsub, format, lower, sub, codepoint, rep, char, byte, len, find, gcodepoint, toNFC, toNFD,
- Table .mw.ustring no sub-tables.
- Table .mw.message no vars.
- Table .mw.message functions : numParam, getDefaultLanguage, rawParam, newFallbackSequence, newRawMessage, new,
- Table .mw.message no sub-tables.
- Table .mw.site vars : string - siteName = ひつじ小屋別館2代目, string - currentVersion = 1.27.0, string - scriptPath = /mediawiki, string - server = http://littleprincess.sakura.ne.jp, string - stylePath = /mediawiki/skins,
- Table .mw.site functions : interwikiMap,
- Table .mw.site tables list : stats, talkNamespaces, namespaces, subjectNamespaces, contentNamespaces,
- Table .mw.site.stats vars : number - articles = 427, number - admins = 1, number - edits = 2806, number - views = 0, number - files = 101, number - users = 199, number - pages = 1057, number - activeUsers = 0,
- Table .mw.site.stats functions : usersInGroup, pagesInCategory, pagesInNamespace,
- Table .mw.site.stats no sub-tables.
- Table .mw.title no vars.
- Table .mw.title functions : makeTitle, compare, equals, getCurrentTitle, new,
- Table .mw.title no sub-tables.
- Table .mw.ext no vars.
- Table .mw.ext no functions.
- Table .mw.ext tables list : ParserFunctions,
- Table .mw.ext.ParserFunctions no vars.
- Table .mw.ext.ParserFunctions functions : expr,
- Table .mw.ext.ParserFunctions no sub-tables.
- Table .mw.uri no vars.
- Table .mw.uri functions : parseQueryString, encode, fullUrl, canonicalUrl, buildQueryString, anchorEncode, validate, localUrl, decode, new,
- Table .mw.uri no sub-tables.
- Content of the mw table, end.