Skip to content

Commit 5c8d942

Browse files
committed
Remove test prefixes
1 parent b9c3b19 commit 5c8d942

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Modules/Tests/YosemiteTests/Storage/PersistedProductTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import GRDB
77
struct PersistedProductTests {
88

99
@Test("PersistedProduct init(from:) maps all POSProduct fields")
10-
func test_product_init_from_posProduct_maps_all_fields() throws {
10+
func product_init_from_posProduct_maps_all_fields() throws {
1111
// Given
1212
let siteID: Int64 = 1
1313
let productID: Int64 = 10
@@ -51,7 +51,7 @@ struct PersistedProductTests {
5151
}
5252

5353
@Test("PersistedProduct toPOSProduct maps back with images and attributes")
54-
func test_product_toPOSProduct_maps_back_including_images_and_attributes() throws {
54+
func product_toPOSProduct_maps_back_including_images_and_attributes() throws {
5555
// Given
5656
let siteID: Int64 = 2
5757
let productID: Int64 = 20
@@ -121,7 +121,7 @@ struct PersistedProductTests {
121121
}
122122

123123
@Test("A Product's images and attributes are fetched automatically")
124-
func test_product_with_associations_fetches_related_records() throws {
124+
func product_with_associations_fetches_related_records() throws {
125125
let grdbManager = try GRDBManager()
126126
let db = grdbManager.databaseConnection
127127

@@ -234,7 +234,7 @@ struct PersistedProductTests {
234234
}
235235

236236
@Test("Product without related records has empty arrays")
237-
func test_product_without_related_records_creates_empty_arrays() throws {
237+
func product_without_related_records_creates_empty_arrays() throws {
238238
let grdbManager = try GRDBManager()
239239
let db = grdbManager.databaseConnection
240240

@@ -280,7 +280,7 @@ struct PersistedProductTests {
280280
}
281281

282282
@Test("PersistedProductAttribute init(from:) and toProductAttribute round-trip")
283-
func test_product_attribute_round_trip() throws {
283+
func product_attribute_round_trip() throws {
284284
// Given
285285
let siteID: Int64 = 3
286286
let productID: Int64 = 30
@@ -313,7 +313,7 @@ struct PersistedProductTests {
313313
}
314314

315315
@Test("PersistedProductImage init(from:) and toProductImage round-trip")
316-
func test_product_image_round_trip() throws {
316+
func product_image_round_trip() throws {
317317
// Given
318318
let productID: Int64 = 40
319319
let image = ProductImage(imageID: 400,
@@ -345,7 +345,7 @@ struct PersistedProductTests {
345345
}
346346

347347
@Test("POSProduct.save() persists complete product with relationships")
348-
func test_save_persists_complete_pos_product() throws {
348+
func save_persists_complete_pos_product() throws {
349349
let grdbManager = try GRDBManager()
350350
let db = grdbManager.databaseConnection
351351

Modules/Tests/YosemiteTests/Storage/PersistedProductVariationTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import GRDB
77
struct PersistedProductVariationTests {
88

99
@Test("PersistedProductVariation init(from:) maps all POSProductVariation fields")
10-
func test_variation_init_from_posProductVariation_maps_all_fields() throws {
10+
func variation_init_from_posProductVariation_maps_all_fields() throws {
1111
// Given
1212
let siteID: Int64 = 5
1313
let productID: Int64 = 50
@@ -56,7 +56,7 @@ struct PersistedProductVariationTests {
5656
}
5757

5858
@Test("PersistedProductVariation toPOSProductVariation maps back with attributes and optional image")
59-
func test_variation_toPOSProductVariation_maps_back_including_attributes_and_image() throws {
59+
func variation_toPOSProductVariation_maps_back_including_attributes_and_image() throws {
6060
// Given
6161
let siteID: Int64 = 6
6262
let productID: Int64 = 60
@@ -111,7 +111,7 @@ struct PersistedProductVariationTests {
111111
}
112112

113113
@Test("ProductVariation with associations fetches attributes and image automatically")
114-
func test_product_variation_with_associations_fetches_related_records() throws {
114+
func product_variation_with_associations_fetches_related_records() throws {
115115
let grdbManager = try GRDBManager()
116116
let db = grdbManager.databaseConnection
117117

@@ -215,7 +215,7 @@ struct PersistedProductVariationTests {
215215
}
216216

217217
@Test("ProductVariation without image returns nil image")
218-
func test_product_variation_without_image_returns_nil() throws {
218+
func product_variation_without_image_returns_nil() throws {
219219
let grdbManager = try GRDBManager()
220220
let db = grdbManager.databaseConnection
221221

@@ -283,7 +283,7 @@ struct PersistedProductVariationTests {
283283
}
284284

285285
@Test("PersistedProductVariationAttribute init(from:) and toProductVariationAttribute round-trip")
286-
func test_variation_attribute_round_trip() throws {
286+
func variation_attribute_round_trip() throws {
287287
// Given
288288
let variationID: Int64 = 700
289289
let attr = ProductVariationAttribute(id: 0, name: "Style", option: "Modern")
@@ -302,7 +302,7 @@ struct PersistedProductVariationTests {
302302
}
303303

304304
@Test("PersistedProductVariationImage init(from:) and toProductImage round-trip")
305-
func test_variation_image_round_trip() throws {
305+
func variation_image_round_trip() throws {
306306
// Given
307307
let variationID: Int64 = 800
308308
let image = ProductImage(imageID: 801,
@@ -334,7 +334,7 @@ struct PersistedProductVariationTests {
334334
}
335335

336336
@Test("POSProductVariation.save() persists complete variation with relationships")
337-
func test_save_persists_complete_pos_product_variation() throws {
337+
func save_persists_complete_pos_product_variation() throws {
338338
let grdbManager = try GRDBManager()
339339
let db = grdbManager.databaseConnection
340340

0 commit comments

Comments
 (0)