Skip to content

Commit f89f963

Browse files
gwleclercclaude
andcommitted
refactor(test): relocate serialization golden data to tests/serialization
Move the serialization golden fixtures out of server/types/testdata/golden into tests/serialization (alongside the other test fixtures under tests/), and rename server/types/serialization_golden_test.go to serialization_test.go. The test stays in package types so it keeps running under `go test ./server/...` (make test). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6a745fe commit f89f963

16 files changed

Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var updateGolden = flag.Bool("update-golden", false, "regenerate golden serializ
3939
const (
4040
dataDir = "../../tests/data"
4141
sessionsDir = "../../tests/sessions"
42-
goldenDir = "testdata/golden"
42+
goldenDir = "../../tests/serialization"
4343
)
4444

4545
// loadFn reads a fixture file and returns a freshly-populated value of the right type.
File renamed without changes.
File renamed without changes.

server/types/testdata/golden/mock_basic_mock_list.golden.json renamed to tests/serialization/mock_basic_mock_list.golden.json

File renamed without changes.

server/types/testdata/golden/mock_basic_mock_list.golden.yaml renamed to tests/serialization/mock_basic_mock_list.golden.yaml

File renamed without changes.

server/types/testdata/golden/mock_dynamic_mock_list.golden.json renamed to tests/serialization/mock_dynamic_mock_list.golden.json

File renamed without changes.

server/types/testdata/golden/mock_dynamic_mock_list.golden.yaml renamed to tests/serialization/mock_dynamic_mock_list.golden.yaml

File renamed without changes.

server/types/testdata/golden/mock_matcher_mock_list.golden.json renamed to tests/serialization/mock_matcher_mock_list.golden.json

File renamed without changes.

server/types/testdata/golden/mock_matcher_mock_list.golden.yaml renamed to tests/serialization/mock_matcher_mock_list.golden.yaml

File renamed without changes.

server/types/testdata/golden/mock_proxy_mock_list.golden.json renamed to tests/serialization/mock_proxy_mock_list.golden.json

File renamed without changes.

0 commit comments

Comments
 (0)