xowf::test_item::Question_manager method render_describe_infos (protected)
<instance of xowf::test_item::Question_manager> render_describe_infos \ describe_infos
Defined in packages/xowf/tcl/test-item-procs.tcl
- Parameters:
- describe_infos (required)
- Testcases:
- No testcase defined.
Source code: set msgList {} foreach describe_info $describe_infos { if {$describe_info ne ""} { # # The handled metrics are currently hardcoded here. So, we can # rely on having the returned value in the message keys. The # list order is important, since it determines also the ordering # in the message. # set msg "" set hasStructure [dict exists $describe_info question_structure] set metrics [expr {$hasStructure ? "question_structure" : [list choice_options sub_questions]}] lappend metrics nrcorrect Minutes Points shuffle available_pool_items available_pool_item_stats foreach metric $metrics { if {[:dict_value $describe_info $metric] ne ""} { set m [dict get $describe_info $metric] switch $metric { nrcorrect { append msg [:pretty_ncorrect $m] } shuffle { append msg "<strong>#xowf.Shuffle#:</strong> [:pretty_shuffle $m]" } default { append msg "<strong>#xowf.$metric#:</strong> $m "} } } } #append msg " <pre>$describe_info</pre> " lappend msgList "$msg\n" } } return $msgListXQL Not present: Generic, PostgreSQL, Oracle