You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

auth_cache_test.go 383 B

3 days ago
2 days ago
3 days ago
1234567891011121314151617181920212223
  1. package repo
  2. import (
  3. "egg-im/internal/business/domain/user/model"
  4. "fmt"
  5. "testing"
  6. )
  7. func TestAuthCache_Get(t *testing.T) {
  8. fmt.Println(AuthCache.Get(1, 1))
  9. }
  10. func TestAuthCache_Set(t *testing.T) {
  11. fmt.Println(AuthCache.Set(1, 1, model.Device{
  12. Type: 1,
  13. Token: "111",
  14. Expire: 111,
  15. }))
  16. }
  17. func TestAuthCache_GetAll(t *testing.T) {
  18. fmt.Println(AuthCache.GetAll(1))
  19. }