commit | 85ba7384183668d2306eb7671459ff2122deab6a | [log] [tgz] |
---|---|---|
author | Václav Kubernát <kubernat@cesnet.cz> | Wed Nov 18 18:11:18 2020 +0100 |
committer | Václav Kubernát <kubernat@cesnet.cz> | Thu Nov 19 11:13:22 2020 +0100 |
tree | c2cdf95f80004a7c6c001998f6f2017d2f10f7f5 | |
parent | 7eb4715f71a18b8af43ce2b9c7a96ba0fc0463ce [diff] [blame] |
Fix get command completing nodes after list-end Issue: https://tree.taiga.io/project/jktjkt-netconf-cli/issue/159 Change-Id: Ib67436afa5d7e528a86e51ae6d73aa2affc8e36d
diff --git a/tests/path_completion.cpp b/tests/path_completion.cpp index bec663d..ffd3e93 100644 --- a/tests/path_completion.cpp +++ b/tests/path_completion.cpp
@@ -195,6 +195,14 @@ expectedCompletions = {"listInCont"}; expectedContextLength = 1; } + + SECTION("get /example:list/") + { + input = "get /example:list/"; + expectedCompletions = {}; + // The expectedContextLength is 13, because the completion isn't actually generated after the slash. + expectedContextLength = 13; + } } SECTION("list keys completion")