Supports unit testing cmd2.Cmd2.complete_set_val to confirm it passes all tokens in the set command
(self, text, line, begidx, endidx, arg_tokens)
| 192 | """Completing this should result in completedefault() being called""" |
| 193 | |
| 194 | def complete_foo_val(self, text, line, begidx, endidx, arg_tokens) -> Completions: |
| 195 | """Supports unit testing cmd2.Cmd2.complete_set_val to confirm it passes all tokens in the set command""" |
| 196 | value = "SUCCESS" if "param" in arg_tokens else "FAIL" |
| 197 | return Completions.from_values([value]) |
| 198 | |
| 199 | def completedefault(self, *ignored) -> Completions: |
| 200 | """Method called to complete an input line when no command-specific |
nothing calls this directly
no test coverage detected