commit | 3b5e65255fe186218281df20cdb2737589998e26 | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Fri Jun 26 18:36:09 2020 +0200 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Fri Jun 26 19:43:32 2020 +0200 |
tree | f8bf2f5b524cc5dc9a12622f93519d1c7e194bcb | |
parent | 70d7f7aff35b5a48e074f3ace64dd268febe22e0 [diff] |
Rework dump command parsing Includes better error message and tab completion. Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/182 Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/183 Change-Id: I6d91870617f99423cc25926522bd1408587c2459
diff --git a/tests/command_completion.cpp b/tests/command_completion.cpp index 06cedd7..cf6b188 100644 --- a/tests/command_completion.cpp +++ b/tests/command_completion.cpp
@@ -73,5 +73,12 @@ expectedContextLength = 0; } + SECTION("dump") + { + input = "dump "; + expectedCompletions = {"xml", "json"}; + expectedContextLength = 0; + } + REQUIRE(parser.completeCommand(input, errorStream) == (Completions{expectedCompletions, expectedContextLength})); }