var filters = new ModelFilter(
private_visibility,
accept_fictive = false,
- accept_test = false)
+ accept_test = true)
test_builder = modelbuilder
test_view = new ModelView(model, mainmodule, filters)
end
fun test_cmd_catalog_search is test do
- var cmd = new CmdCatalogSearch(test_view, test_catalog, "test")
+ var cmd = new CmdCatalogSearch(test_view, test_catalog, "testprog")
var res = cmd.init_command
assert res isa CmdSuccess
assert cmd.results.as(not null).first.full_name == "test_prog"
# CmdCatalog
fun test_cmd_http_catalog_search is test do
- var req = new_request("/?q=test&l=1")
+ var req = new_request("/?q=testprog&l=1")
var cmd = new CmdCatalogSearch(test_view, test_catalog)
var res = cmd.http_init(req)
assert res isa CmdSuccess
"html_synopsis": "<span class=\"synopsys nitdoc\">A worlg RPG abstraction.</span>",
"modifiers": ["module"]
}, {
+ "name": "test_game",
+ "namespace": [{
+ "name": "test_prog",
+ "synopsis": "Test program for model tools."
+ }, "::", {
+ "name": "test_game"
+ }],
+ "class_name": "MModule",
+ "full_name": "test_prog::test_game",
+ "visibility": "public",
+ "modifiers": ["module"]
+ }, {
"name": "test_prog",
"synopsis": "A test program with a fake model to check model tools.",
"namespace": [{
}
}],
"page": 1,
- "count": 113,
+ "count": 121,
"limit": 10,
- "max": 11
+ "max": 12
}
var cmd = new CmdModelEntities(test_view, kind = "modules")
var res = cmd.init_command
assert res isa CmdSuccess
- assert cmd.results.as(not null).length == 10
+ assert cmd.results.as(not null).length == 11
end
fun test_cmd_results_random is test do
Catalog statistics:
* 2 packages
- * 10 modules
- * 75 methods
- * 23 classes
- * 471 lines of code
+ * 11 modules
+ * 78 methods
+ * 25 classes
+ * 502 lines of code
* 6 contributors
* 1 maintainers
* 2 tags