Documentation
¶
Overview ¶
Package fakevercel is a read-only stand-in for the Vercel REST API, shaped from the documented responses the importer consumes. Any request that is not a GET is rejected and recorded, so a test can assert the importer never writes to Vercel.
Index ¶
Constants ¶
View Source
const ( Token = "fake-vercel-token" //nolint:gosec // fixture value TeamID = "team_acme" ProjWeb = "prj_web" ProjDocs = "prj_docs" ProjBare = "prj_bare" SecretVal = "enc-blob-should-never-surface" //nolint:gosec // fixture value )
Fixture identifiers other packages assert on.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// Empty makes the team hold no projects.
Empty bool
// contains filtered or unexported fields
}
Server is the fake. Create it with New and serve Handler.
func (*Server) Violations ¶
Violations returns every request that was not a GET.
Click to show internal directories.
Click to hide internal directories.