23 lines
461 B
Go
23 lines
461 B
Go
package group
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/Jinnrry/pmail/config"
|
|
"github.com/Jinnrry/pmail/db"
|
|
"github.com/Jinnrry/pmail/utils/context"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetGroupStatus(t *testing.T) {
|
|
config.Init()
|
|
db.Init("")
|
|
db.Instance.ShowSQL(true)
|
|
ctx := &context.Context{
|
|
UserID: 1,
|
|
UserName: "admin",
|
|
UserAccount: "admin",
|
|
}
|
|
ret, _ := GetGroupStatus(ctx, "INBOX", []string{"MESSAGES", "UIDNEXT", "UIDVALIDITY", "UNSEEN"})
|
|
fmt.Println(ret)
|
|
}
|