otfe/models/group_test.go

26 lines
491 B
Go
Raw Normal View History

2022-03-12 18:06:39 +00:00
// package models
2022-02-23 12:07:09 +00:00
2022-03-12 18:06:39 +00:00
// import (
// "testing"
2022-02-23 12:07:09 +00:00
2022-03-12 18:06:39 +00:00
// "github.com/globalsign/mgo/bson"
// )
2022-02-23 12:07:09 +00:00
2022-03-12 18:06:39 +00:00
// func TestCreateGroup(t *testing.T) {
// group := NewGroup("test")
// group.Users = append(group.Users, bson.NewObjectId())
// group.Permissions["test"] = true
// t.Log(group.Create())
// }
2022-02-23 12:07:09 +00:00
2022-03-12 18:06:39 +00:00
// func TestReadGroup(t *testing.T) {
// var group Group
// group.Read("name", "test")
// t.Log(group)
// }
2022-02-23 12:07:09 +00:00
2022-03-12 18:06:39 +00:00
// func TestReadAllGroup(t *testing.T) {
// var group Group
// t.Log(group.ReadAll())
// }