diff --git a/Tests/JSONAPITests/XCTestManifests.swift b/Tests/JSONAPITests/XCTestManifests.swift index cd6323d..0b2c004 100644 --- a/Tests/JSONAPITests/XCTestManifests.swift +++ b/Tests/JSONAPITests/XCTestManifests.swift @@ -37,8 +37,11 @@ extension Attribute_FunctorTests { // to regenerate. static let __allTests__Attribute_FunctorTests = [ ("test_mapGuaranteed", test_mapGuaranteed), + ("test_mapGuaranteed_deprecated", test_mapGuaranteed_deprecated), ("test_mapOptionalFailure", test_mapOptionalFailure), + ("test_mapOptionalFailure_deprecated", test_mapOptionalFailure_deprecated), ("test_mapOptionalSuccess", test_mapOptionalSuccess), + ("test_mapOptionalSuccess_deprecated", test_mapOptionalSuccess_deprecated), ] } @@ -59,9 +62,11 @@ extension ComputedPropertiesTests { // to regenerate. static let __allTests__ComputedPropertiesTests = [ ("test_ComputedAttributeAccess", test_ComputedAttributeAccess), + ("test_ComputedAttributeAccess_deprecated", test_ComputedAttributeAccess_deprecated), ("test_ComputedNonAttributeAccess", test_ComputedNonAttributeAccess), ("test_ComputedRelationshipAccess", test_ComputedRelationshipAccess), ("test_DecodeIgnoresComputed", test_DecodeIgnoresComputed), + ("test_DecodeIgnoresComputed_deprecated", test_DecodeIgnoresComputed_deprecated), ("test_EncodeIgnoresComputed", test_EncodeIgnoresComputed), ] } @@ -72,8 +77,10 @@ extension CustomAttributesTests { // to regenerate. static let __allTests__CustomAttributesTests = [ ("test_customDecode", test_customDecode), + ("test_customDecode_deprecated", test_customDecode_deprecated), ("test_customEncode", test_customEncode), ("test_customKeysDecode", test_customKeysDecode), + ("test_customKeysDecode_deprecated", test_customKeysDecode_deprecated), ("test_customKeysEncode", test_customKeysEncode), ] } @@ -301,7 +308,9 @@ extension PolyProxyTests { ("test_generalReasonableness", test_generalReasonableness), ("test_UserAAndBEncodeEquality", test_UserAAndBEncodeEquality), ("test_UserADecode", test_UserADecode), + ("test_UserADecode_deprecated", test_UserADecode_deprecated), ("test_UserBDecode", test_UserBDecode), + ("test_UserBDecode_deprecated", test_UserBDecode_deprecated), ] } @@ -353,6 +362,26 @@ extension ResourceBodyTests { ] } +extension ResourceObjectDecodingErrorTests { + // DO NOT MODIFY: This is autogenerated, use: + // `swift test --generate-linuxmain` + // to regenerate. + static let __allTests__ResourceObjectDecodingErrorTests = [ + ("test_missingAttributesObject", test_missingAttributesObject), + ("test_missingRelationshipsObject", test_missingRelationshipsObject), + ("test_NonNullable_attribute", test_NonNullable_attribute), + ("test_NonNullable_relationship", test_NonNullable_relationship), + ("test_NonNullable_relationship2", test_NonNullable_relationship2), + ("test_oneTypeVsAnother_attribute", test_oneTypeVsAnother_attribute), + ("test_oneTypeVsAnother_attribute2", test_oneTypeVsAnother_attribute2), + ("test_oneTypeVsAnother_attribute3", test_oneTypeVsAnother_attribute3), + ("test_oneTypeVsAnother_relationship", test_oneTypeVsAnother_relationship), + ("test_required_attribute", test_required_attribute), + ("test_required_relationship", test_required_relationship), + ("test_twoOneVsToMany_relationship", test_twoOneVsToMany_relationship), + ] +} + extension ResourceObjectReplacingTests { // DO NOT MODIFY: This is autogenerated, use: // `swift test --generate-linuxmain` @@ -378,37 +407,49 @@ extension ResourceObjectTests { ("test_copyIdentifiedByValue", test_copyIdentifiedByValue), ("test_copyWithNewId", test_copyWithNewId), ("test_entityAllAttribute", test_entityAllAttribute), + ("test_entityAllAttribute_deprecated", test_entityAllAttribute_deprecated), ("test_entityAllAttribute_encode", test_entityAllAttribute_encode), ("test_entityBrokenNullableOmittedAttribute", test_entityBrokenNullableOmittedAttribute), ("test_EntityNoRelationshipsNoAttributes", test_EntityNoRelationshipsNoAttributes), ("test_EntityNoRelationshipsNoAttributes_encode", test_EntityNoRelationshipsNoAttributes_encode), ("test_EntityNoRelationshipsSomeAttributes", test_EntityNoRelationshipsSomeAttributes), + ("test_EntityNoRelationshipsSomeAttributes_deprecated", test_EntityNoRelationshipsSomeAttributes_deprecated), ("test_EntityNoRelationshipsSomeAttributes_encode", test_EntityNoRelationshipsSomeAttributes_encode), ("test_entityOneNullAndOneOmittedAttribute", test_entityOneNullAndOneOmittedAttribute), + ("test_entityOneNullAndOneOmittedAttribute_deprecated", test_entityOneNullAndOneOmittedAttribute_deprecated), ("test_entityOneNullAndOneOmittedAttribute_encode", test_entityOneNullAndOneOmittedAttribute_encode), ("test_entityOneNullAttribute", test_entityOneNullAttribute), + ("test_entityOneNullAttribute_deprecated", test_entityOneNullAttribute_deprecated), ("test_entityOneNullAttribute_encode", test_entityOneNullAttribute_encode), ("test_entityOneOmittedAttribute", test_entityOneOmittedAttribute), + ("test_entityOneOmittedAttribute_deprecated", test_entityOneOmittedAttribute_deprecated), ("test_entityOneOmittedAttribute_encode", test_entityOneOmittedAttribute_encode), ("test_EntitySomeRelationshipsNoAttributes", test_EntitySomeRelationshipsNoAttributes), ("test_EntitySomeRelationshipsNoAttributes_encode", test_EntitySomeRelationshipsNoAttributes_encode), ("test_EntitySomeRelationshipsSomeAttributes", test_EntitySomeRelationshipsSomeAttributes), + ("test_EntitySomeRelationshipsSomeAttributes_deprecated", test_EntitySomeRelationshipsSomeAttributes_deprecated), ("test_EntitySomeRelationshipsSomeAttributes_encode", test_EntitySomeRelationshipsSomeAttributes_encode), ("test_EntitySomeRelationshipsSomeAttributesWithLinks", test_EntitySomeRelationshipsSomeAttributesWithLinks), + ("test_EntitySomeRelationshipsSomeAttributesWithLinks_deprecated", test_EntitySomeRelationshipsSomeAttributesWithLinks_deprecated), ("test_EntitySomeRelationshipsSomeAttributesWithLinks_encode", test_EntitySomeRelationshipsSomeAttributesWithLinks_encode), ("test_EntitySomeRelationshipsSomeAttributesWithMeta", test_EntitySomeRelationshipsSomeAttributesWithMeta), + ("test_EntitySomeRelationshipsSomeAttributesWithMeta_deprecated", test_EntitySomeRelationshipsSomeAttributesWithMeta_deprecated), ("test_EntitySomeRelationshipsSomeAttributesWithMeta_encode", test_EntitySomeRelationshipsSomeAttributesWithMeta_encode), ("test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks", test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks), + ("test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks_deprecated", test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks_deprecated), ("test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks_encode", test_EntitySomeRelationshipsSomeAttributesWithMetaAndLinks_encode), ("test_initialization", test_initialization), ("test_IntOver10_encode", test_IntOver10_encode), ("test_IntOver10_failure", test_IntOver10_failure), ("test_IntOver10_success", test_IntOver10_success), ("test_IntToString", test_IntToString), + ("test_IntToString_deprecated", test_IntToString_deprecated), ("test_IntToString_encode", test_IntToString_encode), ("test_MetaEntityAttributeAccessWorks", test_MetaEntityAttributeAccessWorks), + ("test_MetaEntityAttributeAccessWorks_deprecated", test_MetaEntityAttributeAccessWorks_deprecated), ("test_MetaEntityRelationshipAccessWorks", test_MetaEntityRelationshipAccessWorks), ("test_NonNullOptionalNullableAttribute", test_NonNullOptionalNullableAttribute), + ("test_NonNullOptionalNullableAttribute_deprecated", test_NonNullOptionalNullableAttribute_deprecated), ("test_NonNullOptionalNullableAttribute_encode", test_NonNullOptionalNullableAttribute_encode), ("test_nullableRelationshipIsNull", test_nullableRelationshipIsNull), ("test_nullableRelationshipIsNull_encode", test_nullableRelationshipIsNull_encode), @@ -417,6 +458,7 @@ extension ResourceObjectTests { ("test_nullableRelationshipNotNullOrOmitted", test_nullableRelationshipNotNullOrOmitted), ("test_nullableRelationshipNotNullOrOmitted_encode", test_nullableRelationshipNotNullOrOmitted_encode), ("test_NullOptionalNullableAttribute", test_NullOptionalNullableAttribute), + ("test_NullOptionalNullableAttribute_deprecated", test_NullOptionalNullableAttribute_deprecated), ("test_NullOptionalNullableAttribute_encode", test_NullOptionalNullableAttribute_encode), ("test_optional_relationship_operator_access", test_optional_relationship_operator_access), ("test_optionalNullableRelationshipNulled", test_optionalNullableRelationshipNulled), @@ -434,15 +476,21 @@ extension ResourceObjectTests { ("test_toMany_relationship_operator_access", test_toMany_relationship_operator_access), ("test_toManyMetaRelationshipAccessWorks", test_toManyMetaRelationshipAccessWorks), ("test_UnidentifiedEntity", test_UnidentifiedEntity), + ("test_UnidentifiedEntity_deprecated", test_UnidentifiedEntity_deprecated), ("test_UnidentifiedEntity_encode", test_UnidentifiedEntity_encode), ("test_unidentifiedEntityAttributeAccess", test_unidentifiedEntityAttributeAccess), + ("test_unidentifiedEntityAttributeAccess_deprecated", test_unidentifiedEntityAttributeAccess_deprecated), ("test_UnidentifiedEntityWithAttributes", test_UnidentifiedEntityWithAttributes), + ("test_UnidentifiedEntityWithAttributes_deprecated", test_UnidentifiedEntityWithAttributes_deprecated), ("test_UnidentifiedEntityWithAttributes_encode", test_UnidentifiedEntityWithAttributes_encode), ("test_UnidentifiedEntityWithAttributesAndLinks", test_UnidentifiedEntityWithAttributesAndLinks), + ("test_UnidentifiedEntityWithAttributesAndLinks_deprecated", test_UnidentifiedEntityWithAttributesAndLinks_deprecated), ("test_UnidentifiedEntityWithAttributesAndLinks_encode", test_UnidentifiedEntityWithAttributesAndLinks_encode), ("test_UnidentifiedEntityWithAttributesAndMeta", test_UnidentifiedEntityWithAttributesAndMeta), + ("test_UnidentifiedEntityWithAttributesAndMeta_deprecated", test_UnidentifiedEntityWithAttributesAndMeta_deprecated), ("test_UnidentifiedEntityWithAttributesAndMeta_encode", test_UnidentifiedEntityWithAttributesAndMeta_encode), ("test_UnidentifiedEntityWithAttributesAndMetaAndLinks", test_UnidentifiedEntityWithAttributesAndMetaAndLinks), + ("test_UnidentifiedEntityWithAttributesAndMetaAndLinks_deprecated", test_UnidentifiedEntityWithAttributesAndMetaAndLinks_deprecated), ("test_UnidentifiedEntityWithAttributesAndMetaAndLinks_encode", test_UnidentifiedEntityWithAttributesAndMetaAndLinks_encode), ] } @@ -468,8 +516,11 @@ extension SparseFieldsetTests { // to regenerate. static let __allTests__SparseFieldsetTests = [ ("test_FullEncode", test_FullEncode), + ("test_FullEncode_deprecated", test_FullEncode_deprecated), ("test_PartialEncode", test_PartialEncode), + ("test_PartialEncode_deprecated", test_PartialEncode_deprecated), ("test_sparseFieldsMethod", test_sparseFieldsMethod), + ("test_sparseFieldsMethod_deprecated", test_sparseFieldsMethod_deprecated), ] } @@ -500,6 +551,7 @@ public func __allTests() -> [XCTestCaseEntry] { testCase(PolyProxyTests.__allTests__PolyProxyTests), testCase(RelationshipTests.__allTests__RelationshipTests), testCase(ResourceBodyTests.__allTests__ResourceBodyTests), + testCase(ResourceObjectDecodingErrorTests.__allTests__ResourceObjectDecodingErrorTests), testCase(ResourceObjectReplacingTests.__allTests__ResourceObjectReplacingTests), testCase(ResourceObjectTests.__allTests__ResourceObjectTests), testCase(SparseFieldEncoderTests.__allTests__SparseFieldEncoderTests),