open-vault/helper/locksutil/locks_test.go

11 lines
194 B
Go
Raw Normal View History

2016-07-20 09:37:38 +00:00
package locksutil
import "testing"
2016-07-20 09:37:38 +00:00
func Test_CreateLocks(t *testing.T) {
locks := CreateLocks()
2016-07-20 09:37:38 +00:00
if len(locks) != 256 {
t.Fatalf("bad: len(locks): expected:256 actual:%d", len(locks))
2016-07-20 09:37:38 +00:00
}
}