Skip to content

fix: pass scope argument to createBackup in permissions test#38

Open
tikibozo wants to merge 1 commit into
tawanorg:mainfrom
tikibozo:fix/backup-test-scope-arg
Open

fix: pass scope argument to createBackup in permissions test#38
tikibozo wants to merge 1 commit into
tawanorg:mainfrom
tikibozo:fix/backup-test-scope-arg

Conversation

@tikibozo

Copy link
Copy Markdown
Contributor

Summary

go test ./cmd/claude-sync fails to compile on current main:

cmd/claude-sync/backup_test.go:31:20: not enough arguments in call to createBackup
	have ()
	want (string)

createBackup gained a scope parameter in #33, but the permissions test added in #24 still calls it with no arguments — the two landed independently so neither PR could see the conflict. This passes "full" (the default scope), matching the test's setup which creates files across all sync paths.

Testing

go test ./... passes.

🤖 Generated with Claude Code

createBackup gained a scope parameter in tawanorg#33, but the permissions test
from tawanorg#24 still calls it with no arguments, breaking the build of the
test binary (go test ./cmd/claude-sync fails to compile on main).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant