MCPcopy Create free account
hub / github.com/52funny/pikpakcli / TestRunRequiresPassword

Function TestRunRequiresPassword

cli/setup/setup_test.go:123–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

121}
122
123func TestRunRequiresPassword(t *testing.T) {
124 targetPath := filepath.Join(t.TempDir(), "config.yml")
125
126 _, err := Run(Options{
127 TargetPath: targetPath,
128 Prompts: &fakePrompts{
129 lines: []string{"user@example.com", "", ""},
130 password: " ",
131 },
132 })
133 require.Error(t, err)
134 assert.Contains(t, err.Error(), "password is required")
135 assert.NoFileExists(t, targetPath)
136}
137
138func TestRunRejectsInvalidProxy(t *testing.T) {
139 targetPath := filepath.Join(t.TempDir(), "config.yml")

Callers

nothing calls this directly

Calls 2

RunFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected