v1 plan: helpers_test.go as a given file, fake upstream records /v1/models, no /tmp rule; note task 05 findings
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@ real `store`, `lease.Table`, `limiter` and `health.Table`.
|
||||
## Files
|
||||
|
||||
- Copy (**replaces** v0's file): `internal/proxy/proxy_test.go`
|
||||
- Copy: `internal/proxy/helpers_test.go` (the `fakeHealth` helper that v0's `proxy_test.go` held and `recorder_test.go` still needs)
|
||||
- Modify: `internal/proxy/proxy.go` (split into more files if it passes 400 lines: `proxy.go`, `tee.go`, `hosts.go`), `docs/implementer-log.md`
|
||||
- Keep: `internal/proxy/recorder_test.go` from v0.1 — it must still pass. Its `proxy.New(cfg, h, nil)`
|
||||
call no longer compiles, so **this is the one given test you edit**: change that call to
|
||||
@@ -97,7 +98,8 @@ func SplitRoute(path string) (route, rest string, ok bool)
|
||||
|
||||
## Steps
|
||||
|
||||
- [ ] **1. Copy (replace).** `git switch v1`; `cp docs/plans/v1/_files/internal/proxy/proxy_test.go internal/proxy/proxy_test.go`.
|
||||
- [ ] **1. Copy (replace).** `git switch v1`; `cp docs/plans/v1/_files/internal/proxy/proxy_test.go internal/proxy/proxy_test.go`;
|
||||
`cp docs/plans/v1/_files/internal/proxy/helpers_test.go internal/proxy/`.
|
||||
Edit the one call in `internal/proxy/recorder_test.go` as described above.
|
||||
- [ ] **2. See it fail** (compile). **3. Write the code.** `gofmt -w internal/proxy/`.
|
||||
- [ ] **4. See it pass.** `go test -race -count=1 ./internal/proxy/`. `TestDifferentConversationsSpreadByFreeSlots`
|
||||
|
||||
Reference in New Issue
Block a user