Versions in this module Expand all Collapse all v0 v0.8.1 Jan 29, 2024 v0.8.0 Jan 28, 2024 Changes in this version + const DateLayout + type JWTAssertion struct + func (a *JWTAssertion) Assert(assertFunc func(tb testing.TB, token *jwt.Token)) *JWTAssertion + func (a *JWTAssertion) Value() *jwt.Token + func (a *JWTAssertion) WithAlgorithm(alg string, msgAndArgs ...interface{}) *JWTAssertion + func (a *JWTAssertion) WithAudience(expected []string, msgAndArgs ...interface{}) *JWTAssertion + func (a *JWTAssertion) WithExpiresAt() *TimeAssertion + func (a *JWTAssertion) WithHeader(jsonAssert assertjson.JSONAssertFunc) *JWTAssertion + func (a *JWTAssertion) WithID(expected string, msgAndArgs ...interface{}) *JWTAssertion + func (a *JWTAssertion) WithIssuedAt() *TimeAssertion + func (a *JWTAssertion) WithIssuer(expected string, msgAndArgs ...interface{}) *JWTAssertion + func (a *JWTAssertion) WithNotBefore() *TimeAssertion + func (a *JWTAssertion) WithPayload(jsonAssert assertjson.JSONAssertFunc) *JWTAssertion + func (a *JWTAssertion) WithSubject(expected string, msgAndArgs ...interface{}) *JWTAssertion + type StringAssertion struct + func NewStringAssertion(t TestingT, messagePrefix string, value string) *StringAssertion + func (a *StringAssertion) Contains(value string, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) EqualTo(expectedValue string, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) EqualToOneOf(expectedValues ...string) *StringAssertion + func (a *StringAssertion) IsEmpty(msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) IsNotEmpty(msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) Matches(regexp interface{}, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) NotContains(value string, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) NotEqualTo(expectedValue string, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) NotMatches(regexp interface{}, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithDate(msgAndArgs ...interface{}) *TimeAssertion + func (a *StringAssertion) WithJWT(keyFunc jwt.Keyfunc, msgAndArgs ...interface{}) *JWTAssertion + func (a *StringAssertion) WithLength(length int, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithLengthGreaterThan(expected int, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithLengthGreaterThanOrEqual(expected int, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithLengthLessThan(expected int, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithLengthLessThanOrEqual(expected int, msgAndArgs ...interface{}) *StringAssertion + func (a *StringAssertion) WithTime(msgAndArgs ...interface{}) *TimeAssertion + func (a *StringAssertion) WithTimeWithLayout(layout string, msgAndArgs ...interface{}) *TimeAssertion + type TestingT interface + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Helper func() + Log func(args ...interface{}) + type TimeAssertion struct + func NewTimeAssertion(t TestingT, message string, value time.Time, layout string) *TimeAssertion + func (a *TimeAssertion) After(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) AfterDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) AfterOrEqualTo(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) AfterOrEqualToDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) AtDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) Before(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) BeforeDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) BeforeOrEqualTo(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) BeforeOrEqualToDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) EqualTo(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) EqualToDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) NotEqualTo(expected time.Time, msgAndArgs ...interface{}) *TimeAssertion + func (a *TimeAssertion) NotEqualToDate(year int, month time.Month, day int, msgAndArgs ...interface{}) *TimeAssertion