Rename group package and defaults to halls
This commit is contained in:
@@ -4,11 +4,11 @@ import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"git.stormux.org/storm/skald/group"
|
||||
"git.stormux.org/storm/skald/hall"
|
||||
)
|
||||
|
||||
func TestMakePassword(t *testing.T) {
|
||||
doit := func(pw group.Password) {
|
||||
doit := func(pw hall.Password) {
|
||||
ok, _ := pw.Match("secret")
|
||||
if !ok {
|
||||
t.Errorf("%v didn't match", pw)
|
||||
@@ -50,7 +50,7 @@ func TestFormatPermissions(t *testing.T) {
|
||||
{`[]`, "[]", "[]"},
|
||||
}
|
||||
for _, test := range tests {
|
||||
var p group.Permissions
|
||||
var p hall.Permissions
|
||||
err := json.Unmarshal([]byte(test.j), &p)
|
||||
if err != nil {
|
||||
t.Errorf("Unmarshal %#v: %v", test.j, err)
|
||||
|
||||
Reference in New Issue
Block a user