Enable gofmt code simplification (#4887)

This commit is contained in:
Trevor Pounds
2018-10-19 16:32:54 -04:00
committed by Daniel Nelson
parent 4a311830c6
commit ee056278f5
59 changed files with 599 additions and 599 deletions

View File

@@ -382,7 +382,7 @@ func TestNewBinaryAnnotations(t *testing.T) {
name: "myservice",
},
want: []trace.BinaryAnnotation{
trace.BinaryAnnotation{
{
Host: "myhost",
ServiceName: "myservice",
Key: "mykey",
@@ -424,7 +424,7 @@ func TestNewAnnotations(t *testing.T) {
name: "myservice",
},
want: []trace.Annotation{
trace.Annotation{
{
Host: "myhost",
ServiceName: "myservice",
Timestamp: time.Unix(0, 0).UTC(),

View File

@@ -113,7 +113,7 @@ func TestUnmarshalThrift(t *testing.T) {
Duration: addr(53106),
Annotations: []*zipkincore.Annotation{},
BinaryAnnotations: []*zipkincore.BinaryAnnotation{
&zipkincore.BinaryAnnotation{
{
Key: "lc",
AnnotationType: zipkincore.AnnotationType_STRING,
Value: []byte("trivial"),
@@ -133,7 +133,7 @@ func TestUnmarshalThrift(t *testing.T) {
Duration: addr(50410),
Annotations: []*zipkincore.Annotation{},
BinaryAnnotations: []*zipkincore.BinaryAnnotation{
&zipkincore.BinaryAnnotation{
{
Key: "lc",
AnnotationType: zipkincore.AnnotationType_STRING,
Value: []byte("trivial"),
@@ -151,7 +151,7 @@ func TestUnmarshalThrift(t *testing.T) {
Timestamp: addr(1498688360851318),
Duration: addr(103680),
Annotations: []*zipkincore.Annotation{
&zipkincore.Annotation{
{
Timestamp: 1498688360851325,
Value: "Starting child #0",
Host: &zipkincore.Endpoint{
@@ -159,7 +159,7 @@ func TestUnmarshalThrift(t *testing.T) {
ServiceName: "trivial",
},
},
&zipkincore.Annotation{
{
Timestamp: 1498688360904545,
Value: "Starting child #1",
Host: &zipkincore.Endpoint{
@@ -167,7 +167,7 @@ func TestUnmarshalThrift(t *testing.T) {
ServiceName: "trivial",
},
},
&zipkincore.Annotation{
{
Timestamp: 1498688360954992,
Value: "A Log",
Host: &zipkincore.Endpoint{
@@ -177,7 +177,7 @@ func TestUnmarshalThrift(t *testing.T) {
},
},
BinaryAnnotations: []*zipkincore.BinaryAnnotation{
&zipkincore.BinaryAnnotation{
{
Key: "lc",
AnnotationType: zipkincore.AnnotationType_STRING,
Value: []byte("trivial"),