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

Document field values of instance constructed via `NewTable`. 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:48:20 +03:00 committed by Leonard Lyubich
parent 8abf78009a
commit fc4f7429d5
2 changed files with 25 additions and 0 deletions

View file

@ -100,6 +100,13 @@ func (t *Table) ToV2() *v2acl.Table {
}
// NewTable creates, initializes and returns blank Table instance.
//
// Defaults:
// - version: pkg.SDKVersion();
// - container ID: nil;
// - records: nil;
// - session token: nil;
// - signature: nil.
func NewTable() *Table {
t := new(Table)
t.SetVersion(*pkg.SDKVersion())