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.
 
 
 
 

25 lines
490 B

  1. package repo
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestGroupUserDao_ListByUserId(t *testing.T) {
  7. groups, err := GroupUserRepo.ListByUserId(1)
  8. fmt.Printf("%+v\n %+v\n", groups, err)
  9. }
  10. func TestGroupUserDao_ListGroupUser(t *testing.T) {
  11. users, err := GroupUserRepo.ListUser(1)
  12. fmt.Printf("%+v\n %+v\n", users, err)
  13. }
  14. func TestGroupUserDao_Get(t *testing.T) {
  15. fmt.Println(GroupUserRepo.Get(1, 1))
  16. }
  17. func TestGroupUserDao_Delete(t *testing.T) {
  18. fmt.Println(GroupUserRepo.Delete(1, 1))
  19. }