Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoongo committed Oct 25, 2023
1 parent 4083998 commit 120225e
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ class StableMetricDataTests: XCTestCase {

func testStableMetricDataCreation() {
let type = MetricDataType.Summary
let data = StableMetricData.Data(aggregationTemporality: .delta, points: emptyPointData)
let data = StableMetricData.Data(aggregationTemporality: .delta, points: emptyPointData)

let metricData = StableMetricData(resource: resource, instrumentationScopeInfo: instrumentationScopeInfo, name: metricName, description: metricDescription, unit: unit, type: type, isMonotonic: false, data: data)
let metricData = StableMetricData(resource: resource, instrumentationScopeInfo: instrumentationScopeInfo, name: metricName, description: metricDescription, unit: unit, type: type, isMonotonic: false, data: data)

assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data, data)
XCTAssertEqual(metricData.data.aggregationTemporality, .delta)
XCTAssertEqual(metricData.isMonotonic, false)
XCTAssertEqual(metricData.data.aggregationTemporality, .delta)
XCTAssertEqual(metricData.isMonotonic, false)
}

func testEmptyStableMetricData() {
XCTAssertEqual(StableMetricData.empty, StableMetricData(resource: Resource.empty, instrumentationScopeInfo: InstrumentationScopeInfo(), name: "", description: "", unit: "", type: .Summary, isMonotonic: false, data: StableMetricData.Data(aggregationTemporality: .cumulative, points: [PointData]())))
XCTAssertEqual(StableMetricData.empty, StableMetricData(resource: Resource.empty, instrumentationScopeInfo: InstrumentationScopeInfo(), name: "", description: "", unit: "", type: .Summary, isMonotonic: false, data: StableMetricData.Data(aggregationTemporality: .cumulative, points: [PointData]())))
}

func testCreateExponentialHistogram() {
Expand All @@ -41,8 +41,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data, histogramData)
XCTAssertEqual(metricData.data.aggregationTemporality, .delta)
XCTAssertEqual(metricData.isMonotonic, false)
XCTAssertEqual(metricData.data.aggregationTemporality, .delta)
XCTAssertEqual(metricData.isMonotonic, false)
}

func testCreateHistogram() {
Expand All @@ -64,8 +64,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data, histogramData)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)

XCTAssertFalse(metricData.isEmpty())

Expand All @@ -85,8 +85,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data.points.first, point)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)
}

func testCreateDoubleSum() {
Expand All @@ -100,8 +100,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data.points.first, point)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, true)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, true)
}

func testCreateLongGuage() {
Expand All @@ -114,8 +114,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data.points.first, point)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, false)
}

func testCreateLongSum() {
Expand All @@ -128,8 +128,8 @@ class StableMetricDataTests: XCTestCase {
assertCommon(metricData)
XCTAssertEqual(metricData.type, type)
XCTAssertEqual(metricData.data.points.first, point)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, true)
XCTAssertEqual(metricData.data.aggregationTemporality, .cumulative)
XCTAssertEqual(metricData.isMonotonic, true)
}


Expand Down

0 comments on commit 120225e

Please sign in to comment.