lockbox

password manager
Log | Files | Refs | README | LICENSE

commit 04f49dbb2e48823cd56d657e646ed04d2706d11f
parent ea14b905e4032103db269874e3c273b7faf006e9
Author: Sean Enck <sean@ttypty.com>
Date:   Sun,  3 Sep 2023 15:55:21 -0400

verify default as well

Diffstat:
Minternal/app/completions_test.go | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/internal/app/completions_test.go b/internal/app/completions_test.go @@ -51,6 +51,14 @@ func testCompletion(t *testing.T, bash bool) { if fmt.Sprintf("%v", n) == fmt.Sprintf("%v", v) { t.Errorf("invalid result, should filter") } + os.Setenv("LOCKBOX_COMPLETION_FUNCTION", "DEFAULT") + d, err := app.GenerateCompletions(bash, false, "lb") + if err != nil { + t.Errorf("invalid error: %v", err) + } + if fmt.Sprintf("%v", d) == fmt.Sprintf("%v", v) || fmt.Sprintf("%v", d) == fmt.Sprintf("%v", n) { + t.Errorf("invalid result, should filter") + } } func TestProfileDisplay(t *testing.T) {