golang-im聊天
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.
 
 
 
 

24 line
380 B

  1. package repo
  2. import (
  3. "fmt"
  4. "gim/internal/business/domain/user/model"
  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. }