MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewUsersCommand_Run_DuplicateUser

Function TestNewUsersCommand_Run_DuplicateUser

cmd/create/create_test.go:320–331  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

318}
319
320func TestNewUsersCommand_Run_DuplicateUser(t *testing.T) {
321 cleanup := setupTempConfig(t)
322 defer cleanup()
323
324 // First creation
325 cmd := NewUsersCommand()
326 cmd.Run(cmd, []string{"testuser"})
327
328 // Second creation with same name (should still work, controller handles dedup)
329 cmd2 := NewUsersCommand()
330 cmd2.Run(cmd2, []string{"testuser"})
331}
332
333func TestNewPortsCommand_Run_DuplicatePort(t *testing.T) {
334 cleanup := setupTempConfig(t)

Callers

nothing calls this directly

Calls 2

setupTempConfigFunction · 0.70
NewUsersCommandFunction · 0.70

Tested by

no test coverage detected