Skip to content

Commit

Permalink
Apply gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
utisam committed Mar 2, 2019
1 parent 5f80352 commit 0015b33
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tokenbucket/fixed_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func Test_fixedConfig_Overflow(t *testing.T) {
option: Option{
Default: BucketOption{Size: 1},
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Default: BucketOption{Size: 1},
},
},
Expand All @@ -56,7 +56,7 @@ func Test_fixedConfig_Overflow(t *testing.T) {
option: Option{
Default: BucketOption{Size: 2},
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Default: BucketOption{Size: 1},
},
},
Expand All @@ -71,10 +71,10 @@ func Test_fixedConfig_Overflow(t *testing.T) {
name: "in bucket",
option: Option{
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Buckets: map[string]*BucketOption{
"bucketKey": &BucketOption{Size: 1},
"bucketKey2": &BucketOption{Size: 2},
"bucketKey": {Size: 1},
"bucketKey2": {Size: 2},
},
},
},
Expand All @@ -89,9 +89,9 @@ func Test_fixedConfig_Overflow(t *testing.T) {
name: "over bucket",
option: Option{
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Buckets: map[string]*BucketOption{
"bucketKey": &BucketOption{Size: 1},
"bucketKey": {Size: 1},
},
},
},
Expand All @@ -108,7 +108,7 @@ func Test_fixedConfig_Overflow(t *testing.T) {
option: Option{
Default: BucketOption{Size: 1},
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Default: BucketOption{Size: 2},
},
},
Expand Down Expand Up @@ -153,7 +153,7 @@ func Test_fixedConfig_Rate(t *testing.T) {
name: "chunk default",
option: Option{
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Default: BucketOption{Rate: onePerInterval * 2},
},
},
Expand All @@ -167,9 +167,9 @@ func Test_fixedConfig_Rate(t *testing.T) {
name: "bucket rate",
option: Option{
Chunks: map[string]*ChunkOption{
"chunkKey": &ChunkOption{
"chunkKey": {
Buckets: map[string]*BucketOption{
"bucketKey": &BucketOption{Rate: onePerInterval},
"bucketKey": {Rate: onePerInterval},
},
},
},
Expand Down

0 comments on commit 0015b33

Please sign in to comment.