forked from TrueCloudLab/frostfs-api-go
[#302] pkg/netmap: Document default values set in NewReplica
Document field values of instance constructed via `NewReplica`. Assert the values in corresponding unit test. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
fb591f5fac
commit
af1742b48a
2 changed files with 20 additions and 0 deletions
|
@ -8,6 +8,10 @@ import (
|
|||
type Replica netmap.Replica
|
||||
|
||||
// NewReplica creates and returns new Replica instance.
|
||||
//
|
||||
// Defaults:
|
||||
// - count: 0;
|
||||
// - selector: "".
|
||||
func NewReplica() *Replica {
|
||||
return NewReplicaFromV2(new(netmap.Replica))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue