mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 08:23:34 +01:00
lib/protoparser/graphite: go fmt
This commit is contained in:
parent
50ecf09042
commit
e401b8d527
@ -88,8 +88,8 @@ func TestRowsUnmarshalSuccess(t *testing.T) {
|
|||||||
})
|
})
|
||||||
f("aaa 1123 -1", &Rows{
|
f("aaa 1123 -1", &Rows{
|
||||||
Rows: []Row{{
|
Rows: []Row{{
|
||||||
Metric: "aaa",
|
Metric: "aaa",
|
||||||
Value: 1123,
|
Value: 1123,
|
||||||
Timestamp: -1,
|
Timestamp: -1,
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
@ -189,19 +189,19 @@ func Test_streamContext_Read(t *testing.T) {
|
|||||||
Rows: []Row{{
|
Rows: []Row{{
|
||||||
Metric: "aaa",
|
Metric: "aaa",
|
||||||
Value: 1123,
|
Value: 1123,
|
||||||
Timestamp: 345*1000,
|
Timestamp: 345 * 1000,
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
// Full line with tags
|
// Full line with tags
|
||||||
f("aaa;x=y 1123 345", &Rows{
|
f("aaa;x=y 1123 345", &Rows{
|
||||||
Rows: []Row{{
|
Rows: []Row{{
|
||||||
Metric: "aaa",
|
Metric: "aaa",
|
||||||
Tags: []Tag{{
|
Tags: []Tag{{
|
||||||
Key: "x",
|
Key: "x",
|
||||||
Value: "y",
|
Value: "y",
|
||||||
}},
|
}},
|
||||||
Value: 1123,
|
Value: 1123,
|
||||||
Timestamp: 345*1000,
|
Timestamp: 345 * 1000,
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
// missing timestamp.
|
// missing timestamp.
|
||||||
|
Loading…
Reference in New Issue
Block a user