[#190] sdk-go: Gofumpt fixes
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
157a9930e8
commit
56debcfa56
10 changed files with 17 additions and 18 deletions
|
@ -53,7 +53,6 @@ func BenchmarkNetmap_ContainerNodes(b *testing.B) {
|
|||
b.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ func TestPlacementPolicyEncoding(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestPlacementPolicyWriteString(t *testing.T) {
|
||||
var testCases = []struct {
|
||||
testCases := []struct {
|
||||
name string
|
||||
input string
|
||||
output string // If the output is empty, make it equal to input.
|
||||
|
|
|
@ -99,10 +99,12 @@ func BenchmarkPolicyHRWType(b *testing.B) {
|
|||
p := newPlacementPolicy(1,
|
||||
[]ReplicaDescriptor{
|
||||
newReplica(1, "loc1"),
|
||||
newReplica(1, "loc2")},
|
||||
newReplica(1, "loc2"),
|
||||
},
|
||||
[]Selector{
|
||||
newSelector("loc1", "Location", 1, "loc1", (*Selector).SelectSame),
|
||||
newSelector("loc2", "Location", 1, "loc2", (*Selector).SelectSame)},
|
||||
newSelector("loc2", "Location", 1, "loc2", (*Selector).SelectSame),
|
||||
},
|
||||
[]Filter{
|
||||
newFilter("loc1", "Location", "Shanghai", netmap.EQ),
|
||||
newFilter("loc2", "Location", "Shanghai", netmap.NE),
|
||||
|
@ -144,10 +146,12 @@ func TestPlacementPolicy_DeterministicOrder(t *testing.T) {
|
|||
p := newPlacementPolicy(1,
|
||||
[]ReplicaDescriptor{
|
||||
newReplica(1, "loc1"),
|
||||
newReplica(1, "loc2")},
|
||||
newReplica(1, "loc2"),
|
||||
},
|
||||
[]Selector{
|
||||
newSelector("loc1", "Location", 1, "loc1", (*Selector).SelectSame),
|
||||
newSelector("loc2", "Location", 1, "loc2", (*Selector).SelectSame)},
|
||||
newSelector("loc2", "Location", 1, "loc2", (*Selector).SelectSame),
|
||||
},
|
||||
[]Filter{
|
||||
newFilter("loc1", "Location", "Shanghai", netmap.EQ),
|
||||
newFilter("loc2", "Location", "Shanghai", netmap.NE),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue