Skip to content

Commit

Permalink
Feature/mbx 3748 config tests (#474)
Browse files Browse the repository at this point in the history
* MBX-3748 Remove unnecessary tests

* MBX-3748 SDKVersion Tests

* MBX-3748 Custom Operations Tests

* MBX-3748 Unit tests final

* MBX-3748 Remove unused json

* MBX-3748 Refactoring

* MBX-3748 Added old variation tests

* MBX-3748 PR Fix

---------

Co-authored-by: Akylbek Utekeshev <[email protected]>
  • Loading branch information
Vailence and Akylbek Utekeshev authored Dec 5, 2024
1 parent 7ba2217 commit db2d513
Show file tree
Hide file tree
Showing 18 changed files with 1,196 additions and 1,247 deletions.
48 changes: 12 additions & 36 deletions Mindbox.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Mindbox.xcodeproj/xcshareddata/xcschemes/Mindbox.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
</EnvironmentVariables>
<Testables>
<TestableReference
skipped = "NO">
skipped = "NO"
parallelizable = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "313B233825ADEA0F00A1CB72"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ struct InAppDTO: Decodable, Equatable {
case targeting
case form
}
}

extension InAppDTO {
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.id = try container.decode(String.self, forKey: .id)
Expand Down
6 changes: 4 additions & 2 deletions Mindbox/Model/Common/FailableDecodableArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ struct FailableDecodableArray<Element: Decodable & Equatable>: Decodable, Equata

let elements: [Element]

private struct DummyCodable: Decodable { }
}

extension FailableDecodableArray {
init(from decoder: Decoder) throws {
var container = try decoder.unkeyedContainer()

Expand All @@ -30,8 +34,6 @@ struct FailableDecodableArray<Element: Decodable & Equatable>: Decodable, Equata

self.elements = elements
}

private struct DummyCodable: Decodable { }
}

struct FailableDecodable<Element: Decodable & Equatable>: Decodable, Equatable {
Expand Down
19 changes: 19 additions & 0 deletions MindboxTests/Extensions/Tag+Extensions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Tag+Extensions.swift
// MindboxTests
//
// Created by vailence on 29.11.2024.
// Copyright © 2024 Mindbox. All rights reserved.
//

import Foundation
import Testing

extension Tag {
@Tag static var sdkVersion: Self
@Tag static var customOperations: Self
@Tag static var categoryID: Self
@Tag static var categoryID_In: Self
@Tag static var productID: Self
@Tag static var productSegment: Self
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit db2d513

Please sign in to comment.