2020-03-24 07:41:10 +02:00
|
|
|
// Copyright The OpenTelemetry Authors
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
2019-11-15 23:01:20 +02:00
|
|
|
package stdout_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"context"
|
|
|
|
"encoding/json"
|
2020-06-13 09:55:01 +02:00
|
|
|
"fmt"
|
2019-11-15 23:01:20 +02:00
|
|
|
"strings"
|
|
|
|
"testing"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
|
2020-05-14 01:06:03 +02:00
|
|
|
"go.opentelemetry.io/otel/api/kv"
|
2020-03-19 21:02:46 +02:00
|
|
|
"go.opentelemetry.io/otel/api/metric"
|
2020-03-02 23:54:57 +02:00
|
|
|
"go.opentelemetry.io/otel/exporters/metric/stdout"
|
|
|
|
"go.opentelemetry.io/otel/exporters/metric/test"
|
2019-11-15 23:01:20 +02:00
|
|
|
export "go.opentelemetry.io/otel/sdk/export/metric"
|
2020-06-10 07:53:30 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/export/metric/aggregation"
|
2019-11-15 23:01:20 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/array"
|
|
|
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/ddsketch"
|
2020-03-11 01:00:37 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/lastvalue"
|
2019-11-27 00:07:58 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/minmaxsumcount"
|
2020-03-12 05:21:34 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/metric/aggregator/sum"
|
2019-11-15 23:01:20 +02:00
|
|
|
aggtest "go.opentelemetry.io/otel/sdk/metric/aggregator/test"
|
2020-04-24 18:44:21 +02:00
|
|
|
"go.opentelemetry.io/otel/sdk/resource"
|
2019-11-15 23:01:20 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type testFixture struct {
|
|
|
|
t *testing.T
|
|
|
|
ctx context.Context
|
|
|
|
exporter *stdout.Exporter
|
|
|
|
output *bytes.Buffer
|
|
|
|
}
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
var testResource = resource.New(kv.String("R", "V"))
|
|
|
|
|
|
|
|
func newFixture(t *testing.T, config stdout.Config) testFixture {
|
2019-11-15 23:01:20 +02:00
|
|
|
buf := &bytes.Buffer{}
|
2020-01-03 19:48:45 +02:00
|
|
|
config.Writer = buf
|
|
|
|
config.DoNotPrintTime = true
|
|
|
|
exp, err := stdout.NewRawExporter(config)
|
2019-11-15 23:01:20 +02:00
|
|
|
if err != nil {
|
|
|
|
t.Fatal("Error building fixture: ", err)
|
|
|
|
}
|
|
|
|
return testFixture{
|
|
|
|
t: t,
|
|
|
|
ctx: context.Background(),
|
|
|
|
exporter: exp,
|
|
|
|
output: buf,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fix testFixture) Output() string {
|
|
|
|
return strings.TrimSpace(fix.output.String())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (fix testFixture) Export(checkpointSet export.CheckpointSet) {
|
2020-05-19 02:44:28 +02:00
|
|
|
err := fix.exporter.Export(fix.ctx, checkpointSet)
|
2019-11-15 23:01:20 +02:00
|
|
|
if err != nil {
|
|
|
|
fix.t.Error("export failed: ", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestStdoutInvalidQuantile(t *testing.T) {
|
2020-01-03 19:48:45 +02:00
|
|
|
_, err := stdout.NewRawExporter(stdout.Config{
|
2019-11-15 23:01:20 +02:00
|
|
|
Quantiles: []float64{1.1, 0.9},
|
|
|
|
})
|
|
|
|
require.Error(t, err, "Invalid quantile error expected")
|
2020-06-10 07:53:30 +02:00
|
|
|
require.Equal(t, aggregation.ErrInvalidQuantile, err)
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestStdoutTimestamp(t *testing.T) {
|
|
|
|
var buf bytes.Buffer
|
2020-01-03 19:48:45 +02:00
|
|
|
exporter, err := stdout.NewRawExporter(stdout.Config{
|
2020-01-02 18:40:37 +02:00
|
|
|
Writer: &buf,
|
2019-11-15 23:01:20 +02:00
|
|
|
DoNotPrintTime: false,
|
|
|
|
})
|
|
|
|
if err != nil {
|
2020-01-03 19:48:45 +02:00
|
|
|
t.Fatal("Invalid config: ", err)
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
before := time.Now()
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
ctx := context.Background()
|
2020-05-18 20:03:43 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueObserverKind, metric.Int64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
lvagg, ckpt := test.Unslice2(lastvalue.New(2))
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
aggtest.CheckedUpdate(t, lvagg, metric.NewInt64Number(321), &desc)
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, lvagg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
if err := exporter.Export(ctx, checkpointSet); err != nil {
|
2019-11-15 23:01:20 +02:00
|
|
|
t.Fatal("Unexpected export error: ", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
after := time.Now()
|
|
|
|
|
|
|
|
var printed map[string]interface{}
|
|
|
|
|
|
|
|
if err := json.Unmarshal(buf.Bytes(), &printed); err != nil {
|
|
|
|
t.Fatal("JSON parse error: ", err)
|
|
|
|
}
|
|
|
|
|
|
|
|
updateTS := printed["time"].(string)
|
|
|
|
updateTimestamp, err := time.Parse(time.RFC3339Nano, updateTS)
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal("JSON parse error: ", updateTS, ": ", err)
|
|
|
|
}
|
|
|
|
|
2020-03-11 01:00:37 +02:00
|
|
|
lastValueTS := printed["updates"].([]interface{})[0].(map[string]interface{})["time"].(string)
|
|
|
|
lastValueTimestamp, err := time.Parse(time.RFC3339Nano, lastValueTS)
|
2019-11-15 23:01:20 +02:00
|
|
|
if err != nil {
|
2020-03-11 01:00:37 +02:00
|
|
|
t.Fatal("JSON parse error: ", lastValueTS, ": ", err)
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
require.True(t, updateTimestamp.After(before))
|
|
|
|
require.True(t, updateTimestamp.Before(after))
|
|
|
|
|
2020-03-11 01:00:37 +02:00
|
|
|
require.True(t, lastValueTimestamp.After(before))
|
|
|
|
require.True(t, lastValueTimestamp.Before(after))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-03-11 01:00:37 +02:00
|
|
|
require.True(t, lastValueTimestamp.Before(updateTimestamp))
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func TestStdoutCounterFormat(t *testing.T) {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.CounterKind, metric.Int64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
cagg, ckpt := test.Unslice2(sum.New(2))
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
aggtest.CheckedUpdate(fix.t, cagg, metric.NewInt64Number(123), &desc)
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, cagg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt, kv.String("A", "B"), kv.String("C", "D"))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
require.Equal(t, `{"updates":[{"name":"test.name{R=V,A=B,C=D}","sum":123}]}`, fix.Output())
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
2020-03-11 01:00:37 +02:00
|
|
|
func TestStdoutLastValueFormat(t *testing.T) {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-18 20:03:43 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueObserverKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
lvagg, ckpt := test.Unslice2(lastvalue.New(2))
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
aggtest.CheckedUpdate(fix.t, lvagg, metric.NewFloat64Number(123.456), &desc)
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, lvagg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt, kv.String("A", "B"), kv.String("C", "D"))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
require.Equal(t, `{"updates":[{"name":"test.name{R=V,A=B,C=D}","last":123.456}]}`, fix.Output())
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
2019-11-27 00:07:58 +02:00
|
|
|
func TestStdoutMinMaxSumCount(t *testing.T) {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-16 07:11:12 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueRecorderKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
magg, ckpt := test.Unslice2(minmaxsumcount.New(2, &desc))
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
aggtest.CheckedUpdate(fix.t, magg, metric.NewFloat64Number(123.456), &desc)
|
|
|
|
aggtest.CheckedUpdate(fix.t, magg, metric.NewFloat64Number(876.543), &desc)
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, magg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt, kv.String("A", "B"), kv.String("C", "D"))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
require.Equal(t, `{"updates":[{"name":"test.name{R=V,A=B,C=D}","min":123.456,"max":876.543,"sum":999.999,"count":2}]}`, fix.Output())
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
2020-05-16 07:11:12 +02:00
|
|
|
func TestStdoutValueRecorderFormat(t *testing.T) {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{
|
2019-11-15 23:01:20 +02:00
|
|
|
PrettyPrint: true,
|
|
|
|
})
|
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-16 07:11:12 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueRecorderKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
aagg, ckpt := test.Unslice2(array.New(2))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
for i := 0; i < 1000; i++ {
|
2020-06-13 09:55:01 +02:00
|
|
|
aggtest.CheckedUpdate(fix.t, aagg, metric.NewFloat64Number(float64(i)+0.5), &desc)
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, aagg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt, kv.String("A", "B"), kv.String("C", "D"))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
|
|
|
require.Equal(t, `{
|
|
|
|
"updates": [
|
|
|
|
{
|
2020-05-19 02:44:28 +02:00
|
|
|
"name": "test.name{R=V,A=B,C=D}",
|
2019-11-27 00:07:58 +02:00
|
|
|
"min": 0.5,
|
2019-11-15 23:01:20 +02:00
|
|
|
"max": 999.5,
|
|
|
|
"sum": 500000,
|
|
|
|
"count": 1000,
|
|
|
|
"quantiles": [
|
|
|
|
{
|
|
|
|
"q": 0.5,
|
|
|
|
"v": 500.5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"q": 0.9,
|
|
|
|
"v": 900.5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"q": 0.99,
|
|
|
|
"v": 990.5
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}`, fix.Output())
|
|
|
|
}
|
|
|
|
|
2020-03-17 01:28:33 +02:00
|
|
|
func TestStdoutNoData(t *testing.T) {
|
2020-05-16 07:11:12 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueRecorderKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
runTwoAggs := func(agg, ckpt export.Aggregator) {
|
|
|
|
t.Run(fmt.Sprintf("%T", agg), func(t *testing.T) {
|
2019-11-25 19:51:49 +02:00
|
|
|
t.Parallel()
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, agg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2019-11-25 19:51:49 +02:00
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
|
|
|
require.Equal(t, `{"updates":null}`, fix.Output())
|
|
|
|
})
|
|
|
|
}
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
runTwoAggs(test.Unslice2(ddsketch.New(2, &desc, ddsketch.NewDefaultConfig())))
|
|
|
|
runTwoAggs(test.Unslice2(minmaxsumcount.New(2, &desc)))
|
2019-11-15 23:01:20 +02:00
|
|
|
}
|
|
|
|
|
2020-03-11 01:00:37 +02:00
|
|
|
func TestStdoutLastValueNotSet(t *testing.T) {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(testResource)
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-18 20:03:43 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueObserverKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
|
|
|
|
lvagg, ckpt := test.Unslice2(lastvalue.New(2))
|
|
|
|
require.NoError(t, lvagg.SynchronizedCopy(ckpt, &desc))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
2020-05-14 01:06:03 +02:00
|
|
|
checkpointSet.Add(&desc, lvagg, kv.String("A", "B"), kv.String("C", "D"))
|
2019-11-15 23:01:20 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
|
|
|
require.Equal(t, `{"updates":null}`, fix.Output())
|
|
|
|
}
|
2020-04-24 18:44:21 +02:00
|
|
|
|
|
|
|
func TestStdoutResource(t *testing.T) {
|
|
|
|
type testCase struct {
|
|
|
|
expect string
|
|
|
|
res *resource.Resource
|
2020-05-14 01:06:03 +02:00
|
|
|
attrs []kv.KeyValue
|
2020-04-24 18:44:21 +02:00
|
|
|
}
|
2020-05-14 01:06:03 +02:00
|
|
|
newCase := func(expect string, res *resource.Resource, attrs ...kv.KeyValue) testCase {
|
2020-04-24 18:44:21 +02:00
|
|
|
return testCase{
|
|
|
|
expect: expect,
|
|
|
|
res: res,
|
|
|
|
attrs: attrs,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
testCases := []testCase{
|
|
|
|
newCase("R1=V1,R2=V2,A=B,C=D",
|
2020-05-14 01:06:03 +02:00
|
|
|
resource.New(kv.String("R1", "V1"), kv.String("R2", "V2")),
|
|
|
|
kv.String("A", "B"),
|
|
|
|
kv.String("C", "D")),
|
2020-04-24 18:44:21 +02:00
|
|
|
newCase("R1=V1,R2=V2",
|
2020-05-14 01:06:03 +02:00
|
|
|
resource.New(kv.String("R1", "V1"), kv.String("R2", "V2")),
|
2020-04-24 18:44:21 +02:00
|
|
|
),
|
|
|
|
newCase("A=B,C=D",
|
|
|
|
nil,
|
2020-05-14 01:06:03 +02:00
|
|
|
kv.String("A", "B"),
|
|
|
|
kv.String("C", "D"),
|
2020-04-24 18:44:21 +02:00
|
|
|
),
|
|
|
|
// We explicitly do not de-duplicate between resources
|
|
|
|
// and metric labels in this exporter.
|
|
|
|
newCase("R1=V1,R2=V2,R1=V3,R2=V4",
|
2020-05-14 01:06:03 +02:00
|
|
|
resource.New(kv.String("R1", "V1"), kv.String("R2", "V2")),
|
|
|
|
kv.String("R1", "V3"),
|
|
|
|
kv.String("R2", "V4")),
|
2020-04-24 18:44:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for _, tc := range testCases {
|
2020-05-19 02:44:28 +02:00
|
|
|
fix := newFixture(t, stdout.Config{})
|
2020-04-24 18:44:21 +02:00
|
|
|
|
2020-05-19 02:44:28 +02:00
|
|
|
checkpointSet := test.NewCheckpointSet(tc.res)
|
2020-04-24 18:44:21 +02:00
|
|
|
|
2020-05-18 20:03:43 +02:00
|
|
|
desc := metric.NewDescriptor("test.name", metric.ValueObserverKind, metric.Float64NumberKind)
|
2020-06-13 09:55:01 +02:00
|
|
|
lvagg, ckpt := test.Unslice2(lastvalue.New(2))
|
|
|
|
|
2020-05-11 08:44:42 +02:00
|
|
|
aggtest.CheckedUpdate(fix.t, lvagg, metric.NewFloat64Number(123.456), &desc)
|
2020-06-13 09:55:01 +02:00
|
|
|
require.NoError(t, lvagg.SynchronizedCopy(ckpt, &desc))
|
2020-04-24 18:44:21 +02:00
|
|
|
|
2020-06-13 09:55:01 +02:00
|
|
|
checkpointSet.Add(&desc, ckpt, tc.attrs...)
|
2020-04-24 18:44:21 +02:00
|
|
|
|
|
|
|
fix.Export(checkpointSet)
|
|
|
|
|
|
|
|
require.Equal(t, `{"updates":[{"name":"test.name{`+tc.expect+`}","last":123.456}]}`, fix.Output())
|
|
|
|
}
|
|
|
|
}
|