Update dependencies
This commit is contained in:
@@ -292,7 +292,7 @@ private extension KeyedContainerTests {
|
||||
case key3
|
||||
}
|
||||
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRawRepresentable {
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRepresentable {
|
||||
case test
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ private extension KeyedContainerTests {
|
||||
try dateDecoder.decode(from: self, for: key)
|
||||
}
|
||||
|
||||
func decode<T: SQLiteRawRepresentable>(
|
||||
func decode<T: SQLiteRepresentable>(
|
||||
_ type: T.Type,
|
||||
for key: any CodingKey
|
||||
) throws -> T {
|
||||
@@ -378,7 +378,7 @@ private extension KeyedContainerTests {
|
||||
}
|
||||
|
||||
final class MockValueDecoder: ValueDecoder, SingleValueDecodingContainer {
|
||||
typealias SQLiteData = SQLiteRawValue
|
||||
typealias SQLiteData = SQLiteValue
|
||||
|
||||
let sqliteData: SQLiteData
|
||||
var dateDecoder: DateDecoder
|
||||
@@ -405,7 +405,7 @@ private extension KeyedContainerTests {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
func decode<T: SQLiteRawRepresentable>(
|
||||
func decode<T: SQLiteRepresentable>(
|
||||
_ type: T.Type
|
||||
) throws -> T {
|
||||
fatalError()
|
||||
|
||||
@@ -102,7 +102,7 @@ final class SingleRowDecoderTests: XCTestCase {
|
||||
}
|
||||
XCTAssertTrue(type == Data.self)
|
||||
XCTAssertEqual(context.codingPath as? [DummyKey], path + [testKey])
|
||||
XCTAssertEqual(context.debugDescription, "Expected to decode Data but found an \(SQLiteRawValue.int(0)) instead.")
|
||||
XCTAssertEqual(context.debugDescription, "Expected to decode Data but found an \(SQLiteValue.int(0)) instead.")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ final class SingleValueContainerTests: XCTestCase {
|
||||
}
|
||||
|
||||
private extension SingleValueContainerTests {
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRawRepresentable {
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRepresentable {
|
||||
case test
|
||||
}
|
||||
|
||||
@@ -177,13 +177,13 @@ private extension SingleValueContainerTests {
|
||||
}
|
||||
|
||||
final class MockSingleValueDecoder: ValueDecoder, SingleValueDecodingContainer {
|
||||
let sqliteData: SQLiteRawValue
|
||||
let sqliteData: SQLiteValue
|
||||
let dateDecoder: DateDecoder
|
||||
let codingPath: [any CodingKey]
|
||||
let userInfo: [CodingUserInfoKey: Any]
|
||||
|
||||
init(
|
||||
sqliteData: SQLiteRawValue,
|
||||
sqliteData: SQLiteValue,
|
||||
dateDecoder: DateDecoder = MockDateDecoder(),
|
||||
codingPath: [any CodingKey] = [],
|
||||
userInfo: [CodingUserInfoKey: Any] = [:]
|
||||
@@ -202,7 +202,7 @@ private extension SingleValueContainerTests {
|
||||
try dateDecoder.decode(from: self)
|
||||
}
|
||||
|
||||
func decode<T: SQLiteRawRepresentable>(
|
||||
func decode<T: SQLiteRepresentable>(
|
||||
_ type: T.Type
|
||||
) throws -> T {
|
||||
type.init(sqliteData)!
|
||||
|
||||
@@ -42,7 +42,7 @@ final class SingleValueDecoderTests: XCTestCase {
|
||||
}
|
||||
XCTAssertTrue(type == Data.self)
|
||||
XCTAssertEqual(context.codingPath as? [DummyKey], decoder.codingPath as? [DummyKey])
|
||||
XCTAssertEqual(context.debugDescription, "Expected to decode Data but found an \(SQLiteRawValue.int(0)) instead.")
|
||||
XCTAssertEqual(context.debugDescription, "Expected to decode Data but found an \(SQLiteValue.int(0)) instead.")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ final class SingleValueDecoderTests: XCTestCase {
|
||||
private extension SingleValueDecoderTests {
|
||||
func decoder(
|
||||
dateDecoder: DateDecoder = MockDateDecoder(),
|
||||
sqliteData: SQLiteRawValue,
|
||||
sqliteData: SQLiteValue,
|
||||
codingPath: [any CodingKey] = []
|
||||
) -> SingleValueDecoder {
|
||||
SingleValueDecoder(
|
||||
|
||||
@@ -488,7 +488,7 @@ final class UnkeyedContainerTests: XCTestCase {
|
||||
|
||||
private extension UnkeyedContainerTests {
|
||||
func container(
|
||||
withData data: SQLiteRawValue,
|
||||
withData data: SQLiteValue,
|
||||
codingPath: [any CodingKey] = []
|
||||
) -> UnkeyedContainer<MockKeyedDecoder> {
|
||||
var row = SQLiteRow()
|
||||
@@ -535,7 +535,7 @@ private extension UnkeyedContainerTests {
|
||||
}
|
||||
|
||||
private extension UnkeyedContainerTests {
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRawRepresentable {
|
||||
enum RawRepresentableEnum: String, Decodable, SQLiteRepresentable {
|
||||
case test
|
||||
}
|
||||
|
||||
@@ -596,7 +596,7 @@ private extension UnkeyedContainerTests {
|
||||
try dateDecoder.decode(from: self, for: key)
|
||||
}
|
||||
|
||||
func decode<T: SQLiteRawRepresentable>(
|
||||
func decode<T: SQLiteRepresentable>(
|
||||
_ type: T.Type,
|
||||
for key: any CodingKey
|
||||
) throws -> T {
|
||||
@@ -623,7 +623,7 @@ private extension UnkeyedContainerTests {
|
||||
}
|
||||
|
||||
final class MockValueDecoder: ValueDecoder, SingleValueDecodingContainer {
|
||||
typealias SQLiteData = SQLiteRawValue
|
||||
typealias SQLiteData = SQLiteValue
|
||||
|
||||
let sqliteData: SQLiteData
|
||||
var dateDecoder: DateDecoder
|
||||
@@ -650,7 +650,7 @@ private extension UnkeyedContainerTests {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
func decode<T: SQLiteRawRepresentable>(
|
||||
func decode<T: SQLiteRepresentable>(
|
||||
_ type: T.Type
|
||||
) throws -> T {
|
||||
fatalError()
|
||||
|
||||
Reference in New Issue
Block a user