Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import spock.lang.Specification

class MetricCollectorTest extends Specification {

void 'test metric equality'() {
void 'test metric equality #iterationIndex'() {
when:
final sameMetric = first == second

Expand All @@ -23,6 +23,14 @@ class MetricCollectorTest extends Specification {
counter(tags: ['a:b', 'c:d'], value: 2) | counter(tags: ['a:b', 'c:d'], value: 6) | true
}

void 'test metric toString'() {
expect:
metric.toString() != null

where:
metric << [counter(value: 2), counter(namespace: 'other', value: 6), counter(tags: ['a:b', 'c:d'], value: 2)]
}

private static MetricCollector.Metric counter(final Map metric) {
metric.namespace = metric.namespace ?: 'namespace'
metric.metric = metric.metric ?: 'metric'
Expand Down
Loading