Packages/FoldKit/Sources/FoldKitTestSupport/Fixture.swift

8 lines · 244 bytes

1 symbol in this file
1import Foundation
2
3public func fixture(_ name: String) -> URL {
4    guard let url = Bundle.module.url(forResource: name, withExtension: nil, subdirectory: "Fixtures") else {
5        fatalError("no fixture named \(name)")
6    }
7    return url
8}