Total number of tabs (questions + confirm page for multi-question)
(&self)
| 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> { |
no test coverage detected