diff --git a/pkg/acl/eacl/test/generate.go b/pkg/acl/eacl/test/generate.go new file mode 100644 index 00000000..25697e99 --- /dev/null +++ b/pkg/acl/eacl/test/generate.go @@ -0,0 +1,18 @@ +package eacltest + +import ( + "github.com/nspcc-dev/neofs-api-go/pkg/acl/eacl" +) + +// Target returns random eacl.Target. +func Target() *eacl.Target { + x := eacl.NewTarget() + + x.SetRole(eacl.RoleSystem) + x.SetBinaryKeys([][]byte{ + {1, 2, 3}, + {4, 5, 6}, + }) + + return x +}