2
0

Adds aclitem helper func tests

This commit is contained in:
Manni Wood
2016-11-15 22:22:57 -05:00
parent 7b3488b088
commit 323e2b3f78
2 changed files with 128 additions and 2 deletions
+2 -2
View File
@@ -3000,7 +3000,7 @@ func decodeTextArray(vr *ValueReader) []string {
return a
}
func EscapeAclItem(acl string) (string, error) {
func escapeAclItem(acl string) (string, error) {
var buf bytes.Buffer
r := strings.NewReader(acl)
for {
@@ -3030,7 +3030,7 @@ func encodeAclItemSlice(w *WriteBuf, oid Oid, aclitems []AclItem) error {
var escaped string
var err error
for i := range strs {
escaped, err = EscapeAclItem(string(aclitems[i]))
escaped, err = escapeAclItem(string(aclitems[i]))
if err != nil {
return err
}