Documentation
¶
Index ¶
- func AssertExists(file []byte, err error) []byte
- func AssertGetContains(t *testing.T, app *http.Server, uri string, expected string)
- func AssertGetWithCookieContains(t *testing.T, app *http.Server, client *http.Client, cookie *http.Cookie, ...)
- func ContainsExactly[T any](t *testing.T, arrayToCheck []T, elementsToCheck ...T)
- func WithSetUp[T TestData](data T, test func(data T))
- type FakeAuthServer
- type MockHTTPClient
- type SigningKey
- type TestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertExists ¶ added in v0.1.6
func AssertGetContains ¶ added in v0.1.6
func AssertGetWithCookieContains ¶ added in v0.1.6
func ContainsExactly ¶ added in v0.1.6
Types ¶
type FakeAuthServer ¶ added in v0.1.6
type FakeAuthServer struct { Issuer string Server *httptest.Server // contains filtered or unexported fields }
func NewFakeAuthServer ¶ added in v0.1.6
func NewFakeAuthServer(clientID string, claims map[string]interface{}) *FakeAuthServer
type MockHTTPClient ¶ added in v0.1.6
type MockHTTPClient struct { mock.Mock Err error ResponseBody map[string][]byte RequestBody []byte Url string StatusCode int }
func NewMockHTTPClient ¶ added in v0.1.6
func NewMockHTTPClient() *MockHTTPClient
type SigningKey ¶ added in v0.1.6
type SigningKey struct {
// contains filtered or unexported fields
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.