Documentation ¶
Index ¶
Constants ¶
View Source
const AccessToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9." +
"eyJlbWFpbCI6Iml2bi0xNS0wN0BtYWlsLnJ1IiwiZXhwaXJlIjoxNzAxMjg1MzE4LCJ1c2VySUQiOjExfQ." +
"jIPlwcF5xGPpgQ5WYp5kFv9Av-yguX2aOYsAgbodDM4"
AccessToken for read only, because async usage.
View Source
const CommentID uint64 = 1
View Source
const CountComment uint64 = 2
View Source
const CountProduct uint64 = 2
View Source
const ProductID uint64 = 1
View Source
const UserID uint64 = 1
Variables ¶
View Source
var Cookie = http.Cookie{ Name: responses.CookieAuthName, Value: AccessToken, Expires: time.Now().Add(time.Hour), }
Cookie for read only, because async usage.
Functions ¶
func CompareHTTPTestResult ¶
func CompareHTTPTestResult(recorder *httptest.ResponseRecorder, expected any) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.