- handlers_tablos.go: TablosDeps stub type enabling test compilation - handlers_tablos_test.go: 10 integration tests (RED baseline) for all TABLO-01..06 paths - TestTabloList, TestTabloList_Empty, TestTabloCreate, TestTabloCreate_Validation - TestTabloDetail_Owner, TestTabloDetail_NonOwner, TestTabloDetail_InvalidID - TestTabloUpdate, TestTabloDeleteConfirm, TestTabloDelete - router.go: NewRouter accepts TablosDeps as second deps parameter - handlers_auth_test.go, handlers_test.go, csrf_test.go: update NewRouter call sites - cmd/web/main.go: construct and pass TablosDeps to NewRouter
10 lines
294 B
Go
10 lines
294 B
Go
package web
|
|
|
|
import "backend/internal/db/sqlc"
|
|
|
|
// TablosDeps holds dependencies for all tablo handlers.
|
|
// Introduced in Plan 01 as a stub to allow handlers_tablos_test.go to compile.
|
|
// Plans 02 and 03 add the actual handler implementations.
|
|
type TablosDeps struct {
|
|
Queries *sqlc.Queries
|
|
}
|