[#288] pkg/eacl: Document default values set in NewRecord

Document field values of instance constructed via `NewRecord`. Assert the
values in corresponding unit test.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-27 14:36:45 +03:00 committed by Leonard Lyubich
parent 18a3c4d54f
commit 374c37983d
2 changed files with 24 additions and 0 deletions

View file

@ -156,6 +156,12 @@ func (r *Record) ToV2() *v2acl.Record {
}
// NewRecord creates and returns blank Record instance.
//
// Defaults:
// - action: ActionUnknown;
// - operation: OperationUnknown;
// - targets: nil,
// - filters: nil.
func NewRecord() *Record {
return new(Record)
}