MCPcopy Create free account
hub / github.com/GCWing/BitFun / tab_count

Method tab_count

src/apps/cli/src/ui/question.rs:142–148  ·  view source on GitHub ↗

Total number of tabs (questions + confirm page for multi-question)

(&self)

Source from the content-addressed store, hash-verified

140
141 /// Total number of tabs (questions + confirm page for multi-question)
142 fn tab_count(&self) -> usize {
143 if self.is_single_auto_submit() {
144 1
145 } else {
146 self.questions.len() + 1
147 }
148 }
149
150 /// Current question (None if on confirm page)
151 fn current_question(&self) -> Option<&QuestionData> {

Callers 4

handle_question_keyMethod · 0.80
advance_tabMethod · 0.80
render_question_pageFunction · 0.80
render_question_hint_barFunction · 0.80

Calls 2

is_single_auto_submitMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected