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

Method is_other_selected

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

Whether the selected option is "Other"

(&self)

Source from the content-addressed store, hash-verified

163
164 /// Whether the selected option is "Other"
165 fn is_other_selected(&self) -> bool {
166 if let Some(q) = self.current_question() {
167 self.selected_option == q.options.len()
168 } else {
169 false
170 }
171 }
172
173 /// Build the answers JSON payload for submission
174 fn build_answers_payload(&self) -> serde_json::Value {

Callers 1

select_current_optionMethod · 0.80

Calls 2

current_questionMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected