Skip to content

Commit 2648925

Browse files
fix: use obviously-fake key in MaskKey test fixture
Replace the genuine-looking key used as input to the MaskKey test with an obviously synthetic 32-char string of the same shape, so the fixture cannot be mistaken for a credential. Also add .claude/ to .gitignore to keep agent state out of the repo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f842591 commit 2648925

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ dist/
33
.DS_Store
44
*.exe
55
outputs/
6+
.claude/

internal/config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestMaskKey(t *testing.T) {
1313
input string
1414
expected string
1515
}{
16-
{"gcuTZLxvUU3tb9TGfyAUkGiLmFS2Dvqn", "gcuT****Dvqn"},
16+
{"abcdEFGHijklMNOPqrstUVWXyz0123456", "abcd****3456"},
1717
{"short", "****"},
1818
{"12345678", "****"},
1919
{"123456789", "1234****6789"},

0 commit comments

Comments
 (0)