feat(01-01): create main.go, test scaffolding, and testdata fixtures
- main.go entry point (7 lines) delegates to cmd.Execute() - cmd/root.go stub so go build ./... compiles (Plan 05 replaces) - pkg/providers, pkg/storage, pkg/engine package stubs - Test stubs with t.Skip() for providers, storage, engine packages - testdata/samples: openai_key.txt, anthropic_key.txt, multiple_keys.txt, no_keys.txt - go build ./... and go test ./... -short both exit 0
This commit is contained in:
2
testdata/samples/anthropic_key.txt
vendored
Normal file
2
testdata/samples/anthropic_key.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Test file: synthetic Anthropic key pattern
|
||||
export ANTHROPIC_API_KEY="sk-ant-api03-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy01234567890-ABCDE"
|
||||
3
testdata/samples/multiple_keys.txt
vendored
Normal file
3
testdata/samples/multiple_keys.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Multiple providers in one file
|
||||
OPENAI_API_KEY=sk-proj-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr5678
|
||||
ANTHROPIC_API_KEY=sk-ant-api03-XYZabcdefghijklmnopqrstuvwxyz01234567890ABCDEFGH-XYZAB
|
||||
3
testdata/samples/no_keys.txt
vendored
Normal file
3
testdata/samples/no_keys.txt
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# This file contains no API keys
|
||||
# Used to verify false-positive rate is zero for clean files
|
||||
Hello world
|
||||
2
testdata/samples/openai_key.txt
vendored
Normal file
2
testdata/samples/openai_key.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Test file: synthetic OpenAI key pattern
|
||||
OPENAI_API_KEY=sk-proj-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr1234
|
||||
Reference in New Issue
Block a user