Documentation
¶
Index ¶
- func AssertError(t *testing.T, output []byte, expectedCode string)
- func AssertSuccess(t *testing.T, output []byte) any
- func MockCredentialStore() *credentials.MemoryStore
- func NewTrelloServer(t *testing.T, routes map[string]http.HandlerFunc) *httptest.Server
- func ParseEnvelope(t *testing.T, output []byte) map[string]any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
AssertError asserts the envelope has ok: false with the expected error code.
func AssertSuccess ¶
AssertSuccess asserts the envelope has ok: true and returns the data field.
func MockCredentialStore ¶
func MockCredentialStore() *credentials.MemoryStore
MockCredentialStore returns a MemoryStore for use in tests. This is a convenience alias — tests should use credentials.NewMemoryStore() directly.
func NewTrelloServer ¶
NewTrelloServer creates a test HTTP server with configurable route handlers. Routes are keyed by "METHOD /path" (e.g., "GET /1/members/me").
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.