Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/secrets/plugins/wincred/load_other_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//go:build !windows

package plugins

import "testing"

func TestLoadWindowsCredentialUnsupported(t *testing.T) {
if _, err := loadWindowsCredential("target", "raw"); err == nil {
t.Fatal("expected unsupported-platform error")
}
}
10 changes: 0 additions & 10 deletions app/secrets/plugins/wincred/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package plugins
import (
"context"
"encoding/binary"
"runtime"
"testing"
"unicode/utf16"
)
Expand All @@ -29,15 +28,6 @@ func TestWinCredPluginLoad(t *testing.T) {
}
}

func TestLoadWindowsCredentialUnsupported(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("non-windows unsupported-path test")
}
if _, err := loadWindowsCredential("target", "raw"); err == nil {
t.Fatal("expected unsupported-platform error")
}
}

func TestWinCredPluginLoadInvalidID(t *testing.T) {
p := winCredPlugin{}
if _, err := p.Load(context.Background(), "#utf8"); err == nil {
Expand Down
Loading