Documentation ¶
Index ¶
- Constants
- func AssertResponse(t *testing.T, want *Response, got *http.Response)
- func AssertResponseJSON(t *testing.T, want *Response, got *http.Response)
- func CloseResponseBody(t *testing.T, resp *http.Response)
- func CompareType(t *testing.T, v1, v2 any)
- func CompareValue(t *testing.T, v1, v2 any)
- func ExitOnError(t *testing.T, err error)
- func LoadFile(t *testing.T, path string) []byte
- func NewCache(t *testing.T) *datastore.Cache
- func NewDatabase(t *testing.T, c *config.Config) *datastore.Database
- func Request(t *testing.T, c *http.Client, method string, u *url.URL, p *RequestParam, ...) (*http.Response, error)
- type FixedClocker
- type FixedTomorrowClocker
- type RequestParam
- type Response
Constants ¶
View Source
const TestDBHost = "127.0.0.1"
View Source
const TestDBName = "idp_test"
View Source
const TestDBPassword = "idp_test"
View Source
const TestDBPort = 13306
View Source
const TestDBUser = "idp_test"
View Source
const TestRedisDB = 1
View Source
const TestRedisHost = "127.0.0.1"
View Source
const TestRedisPassword = ""
View Source
const TestRedisPort = 16379
Variables ¶
This section is empty.
Functions ¶
func CompareType ¶
func CompareValue ¶
func ExitOnError ¶
Types ¶
type FixedClocker ¶
type FixedClocker struct{}
func (FixedClocker) Now ¶
func (v FixedClocker) Now() time.Time
type FixedTomorrowClocker ¶
type FixedTomorrowClocker struct{}
func (FixedTomorrowClocker) Now ¶
func (v FixedTomorrowClocker) Now() time.Time
Click to show internal directories.
Click to hide internal directories.