From 5a2ccbd2d4ce6669ebacbd418aa7ec46e6381a73 Mon Sep 17 00:00:00 2001 From: Yuhui Luo <92632263+lyh7c00@users.noreply.github.com> Date: Tue, 25 Aug 2026 20:59:03 +0800 Subject: [PATCH] test(plugin): cover leading empty entry in HELM_PLUGINS Adds a TestPath case where the list begins with the separator so the first non-empty directory is chosen. Signed-off-by: Yuhui Luo <92632263+lyh7c00@users.noreply.github.com> --- internal/plugin/installer/base_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/plugin/installer/base_test.go b/internal/plugin/installer/base_test.go index f27be4037..483f49299 100644 --- a/internal/plugin/installer/base_test.go +++ b/internal/plugin/installer/base_test.go @@ -39,6 +39,10 @@ func TestPath(t *testing.T) { source: "https://github.com/jkroepke/helm-secrets", helmPluginsDir: strings.Join([]string{"/helm/data/plugins", "/helm/data/extra"}, string(filepath.ListSeparator)), expectPath: "/helm/data/plugins/helm-secrets", + }, { + source: "https://github.com/jkroepke/helm-secrets", + helmPluginsDir: string(filepath.ListSeparator) + "/helm/data/plugins", + expectPath: "/helm/data/plugins/helm-secrets", }, }