Skip to content

Commit 7d66087

Browse files
Fix gofmt and add Go report card (#3751)
1 parent 5278b2e commit 7d66087

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[![Build status](https://badge.buildkite.com/98c157ed502d55722ef7f28e6470aa20702c76d6989a0a5a89.svg?branch=master)](https://buildkite.com/temporal/temporal-public)
22
[![Coverage Status](https://coveralls.io/repos/github/temporalio/temporal/badge.svg?branch=master)](https://coveralls.io/github/temporalio/temporal?branch=master)
33
[![Discourse](https://img.shields.io/static/v1?label=Discourse&message=Get%20Help&color=informational)](https://community.temporal.io)
4+
[![Go Report Card][go-report-image]][go-report-url]
5+
6+
[go-report-image]: https://goreportcard.com/badge/github.com/temporalio/temporal
7+
[go-report-url]: https://goreportcard.com/report/github.com/temporalio/temporal
48

59
# Temporal
610

common/archiver/URI_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ func (s *URISuite) TestURI() {
9999
hostname: "localhost",
100100
port: "8080",
101101
query: map[string][]string{
102-
"key1": []string{"value1", "value2"},
103-
"key2": []string{"value3"},
102+
"key1": {"value1", "value2"},
103+
"key2": {"value3"},
104104
},
105105
},
106106
{
@@ -124,8 +124,8 @@ func (s *URISuite) TestURI() {
124124
scheme: "test",
125125
opaque: "opaque",
126126
query: map[string][]string{
127-
"key1": []string{"value1", "value2"},
128-
"key2": []string{"value3"},
127+
"key1": {"value1", "value2"},
128+
"key2": {"value3"},
129129
},
130130
},
131131
}

common/collection/pagingIterator_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (s *pagingIteratorSuite) TestIteration_Err_NotBegining() {
127127

128128
phase := 0
129129
outputs := [][]interface{}{
130-
[]interface{}{1, 2, 3, 4, 5},
130+
{1, 2, 3, 4, 5},
131131
}
132132
tokens := [][]byte{
133133
[]byte("some random token 1"),

service/frontend/workflow_handler_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ func (s *workflowHandlerSuite) TestDisableListVisibilityByFilter() {
256256
func (s *workflowHandlerSuite) TestTransientTaskInjection() {
257257
cfg := s.newConfig()
258258
baseEvents := []*historypb.HistoryEvent{
259-
&historypb.HistoryEvent{EventId: 1},
260-
&historypb.HistoryEvent{EventId: 2},
259+
{EventId: 1},
260+
{EventId: 2},
261261
}
262262

263263
// Needed to execute test but not relevant

0 commit comments

Comments
 (0)