Files
divkit/client/ios/DivKitSnapshotTests/ReferenceSet.swift
T
pkurchatov 6c3777d41d Used attachments in snapshot tests
commit_hash:43f9cf2f0d8be8bbb4a7cfd602116737796193ce
2025-12-03 00:48:07 +03:00

21 lines
555 B
Swift

import Foundation
enum ReferenceSet {
static var referenceSnapshotsPath: String {
let plistPath = Bundle.main.path(forResource: "Info", ofType: "plist")!
let plistContents = try! PropertyListDecoder().decode(
PlistContents.self,
from: Data(contentsOf: URL(fileURLWithPath: plistPath))
)
return plistContents.referenceSnapshotsPath
}
}
private struct PlistContents: Decodable {
enum CodingKeys: String, CodingKey {
case referenceSnapshotsPath = "REFERENCE_SNAPSHOTS_PATH"
}
let referenceSnapshotsPath: String
}