Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement YAML schemas for properly reading and writing scalars #74

Merged
merged 2 commits into from
Jun 10, 2024

Refactor Libfyaml error handling

7046ec7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Implement YAML schemas for properly reading and writing scalars #74

Refactor Libfyaml error handling
7046ec7
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results ios succeeded Jun 10, 2024 in 0s

Xcode test results

Testing workspace PotentCodables with scheme PotentCodables

Summary

TotalSuccess PassedFailure FailedSkipped SkippedExpected Failure Expected Failure⏱️ Time
131413140000.14s

Test Summary

PotentCodablesTests

  • Device: iPhone 15, 17.2 (21C62)
  • SDK: Simulator - iOS 17.2, 17.2
TestTotalSuccessFailureSkippedExpected Failure
test-class ASN1AnyStringTests1010000
test-class ASN1AnyValueTests22000
test-class ASN1DERBigIntTests11000
test-class ASN1DERTests77000
test-class ASN1DecoderTests8686000
test-class ASN1EncoderTests2929000
test-class ASN1SchemaDecodeTests6161000
test-class ASN1SchemaEncodeTests4949000
test-class ASN1SchemaTests2626000
test-class ASN1Tests99000
test-class ASN1ValueTests3131000
test-class AnyCodingKeyTests22000
test-class AnyValueCoderTests2323000
test-class AnyValueTests3535000
test-class CBORAnyValueTests44000
test-class CBORCodableRoundtripTests1212000
test-class CBORDecoderTests8787000
test-class CBOREncoderTests2727000
test-class CBORReaderTests1010000
test-class CBORTests66000
test-class CBORValueTests2828000
test-class CBORWriterTests1818000
test-class ConfigurationTests1414000
test-class JSONAnyValueTests33000
test-class JSONDecoderTests159159000
test-class JSONEncoderTests6868000
test-class JSONOrderTests44000
test-class JSONReaderTests1919000
test-class JSONValueTests2323000
test-class JSONWriterTests1010000
test-class RefTests2727000
test-class TimeZoneTests22000
test-class UnkeyedCodingContainerTests2626000
test-class ValueCoderTests5252000
test-class ValueTransformableTests55000
test-class ValueTransformerTests4848000
test-class YAMLAnyValueTests22000
test-class YAMLDecoderTests158158000
test-class YAMLEncoderTests6060000
test-class YAMLErrorTests55000
test-class YAMLOrderTests44000
test-class YAMLReaderTests99000
test-class YAMLSchemaTests44000
test-class YAMLTests1010000
test-class YAMLValueTests2727000
test-class YAMLWriterTests1212000

Failure Failures

All tests passed 🎉


Code Coverage

Coverage Covered Executable
PotentCodables 45.93 % 17829 38821
  fy-blob.c 0.00 % 0 68
  ASN1Decoder.swift 96.03 % 775 807
  AnyValueDecoder.swift 80.00 % 196 245
  fy-input.c 40.13 % 301 750
  fy-path.c 0.00 % 0 467
  YAMLWriter.swift 93.39 % 240 257
  Libfyaml.swift 83.18 % 89 107
  KeyStrategy.swift 83.62 % 97 116
  fy-diag.c 18.97 % 177 933
  ASN1Encoder.swift 96.99 % 613 632
  ValueEncoder.swift 93.05 % 656 705
  CBORReader.swift 98.91 % 181 183
  Refs.swift 90.11 % 82 91
  CBOR.swift 95.03 % 172 181
  fy-accel.c 0.00 % 0 263
  fy-ctype.c 0.00 % 0 37
  ObjectIdentifier.swift 83.78 % 31 37
  fy-walk.c 0.00 % 0 3401
  ValueTransformerProviding.swift 100.00 % 30 30
  YAMLSerialization.swift 83.08 % 54 65
  CBORWriter.swift 100.00 % 188 188
  fy-atom.c 47.60 % 575 1208
  fy-event.c 33.55 % 263 784
  JSONReader.swift 96.90 % 469 484
  CBORStream.swift 92.45 % 49 53
  Errors.swift 83.33 % 20 24
  YAML.swift 96.99 % 258 266
  ASN1DERWriter.swift 95.82 % 275 287
  Schema.swift 99.75 % 401 402
  AnyTime.swift 100.00 % 8 8
  JSONDecoder.swift 96.88 % 496 512
  fy-emit.c 47.69 % 1195 2506
  SchemaSpecified.swift 100.00 % 3 3
  BigInts.swift 98.15 % 53 54
  ASN1.swift 95.31 % 427 448
  TaggedValue.swift 100.00 % 4 4
  BitString.swift 85.19 % 92 108
  JSONWriter.swift 100.00 % 179 179
  ValueDecoder.swift 89.50 % 1108 1238
  fy-utils.c 0.00 % 0 572
  AnyCodingKey.swift 95.24 % 40 42
  fy-utf8.c 1.75 % 13 743
  fy-doc.c 0.00 % 0 4938
  ValueTransformer.swift 99.39 % 978 984
  fy-docstate.c 33.92 % 96 283
  ASN1Serialization.swift 100.00 % 9 9
  fy-parse.c 43.36 % 2379 5486
  JSONEncoder.swift 97.90 % 327 334
  Regexes.swift 76.92 % 10 13
  AnyValueEncoder.swift 79.88 % 135 169
  fy-token.c 32.62 % 445 1364
  ZonedDate.swift 97.79 % 133 136
  YAMLDecoder.swift 95.21 % 556 584
  CBORSerialization.swift 100.00 % 12 12
  fy-dump.c 0.00 % 0 109
  CBORDecoder.swift 96.41 % 590 612
  JSONSerialization.swift 92.05 % 81 88
  ASN1DERReader.swift 93.02 % 293 315
  TimeZone.swift 95.08 % 58 61
  KeyedNestedDecoder.swift 83.58 % 56 67
  SchemaState.swift 93.90 % 200 213
  AnyValue.swift 93.40 % 453 485
  JSON.swift 96.35 % 185 192
  CBOREncoder.swift 97.58 % 202 207
  Errors.swift 89.47 % 34 38
  fy-docbuilder.c 0.82 % 3 368
  YAMLSchemaCore.swift 81.25 % 13 16
  Dates.swift 100.00 % 111 111
  YAMLEncoder.swift 95.64 % 263 275
  YAMLReader.swift 96.40 % 268 278
  AnyString.swift 86.25 % 69 80
  Errors.swift 0.00 % 0 38
  KeyedNestedEncoder.swift 84.85 % 56 66
  xxhash.c 0.00 % 0 1153
  fy-composer.c 1.61 % 4 249
PotentCodablesTests 97.38 % 44080 45267
  AnyCodingKey.swift 95.24 % 40 42
  YAMLEncoderTests.swift 99.92 % 1251 1252
  JSONDecoder.swift 96.88 % 496 512
  ASN1SchemaDecodeTests.swift 98.46 % 1277 1297
  JSONEncoderTests.swift 99.92 % 1253 1254
  CBORTests.swift 97.00 % 97 100
  YAMLEncoder.swift 95.64 % 263 275
  KeyStrategy.swift 83.62 % 97 116
  CBOREncoderTests.swift 99.32 % 437 440
  JSONWriter.swift 100.00 % 179 179
  JSONWriterTests.swift 100.00 % 75 75
  YAMLOrderTests.swift 100.00 % 108 108
  CBORReader.swift 98.91 % 181 183
  TimeZoneTests.swift 99.21 % 126 127
  YAMLAnyValueTests.swift 100.00 % 279 279
  JSONEncoder.swift 97.90 % 327 334
  ZonedDate.swift 97.79 % 133 136
  SchemaSpecified.swift 100.00 % 3 3
  YAMLValueTests.swift 100.00 % 295 295
  CBORWriterTests.swift 97.17 % 927 954
  AnyValueEncoder.swift 79.88 % 135 169
  ValueTransformerProvidingTests.swift 100.00 % 182 182
  YAMLReader.swift 96.40 % 268 278
  AnyValueTests.swift 100.00 % 997 997
  CBORSerialization.swift 100.00 % 12 12
  Datas.swift 100.00 % 26 26
  CBORValueTests.swift 100.00 % 264 264
  ASN1DecoderTests.swift 99.70 % 1668 1673
  TimeZone.swift 95.08 % 58 61
  CBORDecoder.swift 96.41 % 590 612
  ASN1AnyStringTests.swift 100.00 % 103 103
  Libfyaml.swift 83.18 % 89 107
  AnyValueDecoder.swift 80.00 % 196 245
  ASN1.swift 95.31 % 427 448
  YAMLDecoderTests.swift 98.74 % 3458 3502
  AnyCodingKeyTests.swift 100.00 % 66 66
  ASN1Serialization.swift 100.00 % 9 9
  ValueDecoder.swift 89.50 % 1108 1238
  TaggedValue.swift 100.00 % 4 4
  CBOR.swift 95.03 % 172 181
  ASN1Tests.swift 99.76 % 409 410
  JSONOrderTests.swift 100.00 % 63 63
  JSONDecoderTests.swift 98.41 % 2731 2775
  YAMLReaderTests.swift 100.00 % 171 171
  AnyTime.swift 100.00 % 8 8
  CBOREncoder.swift 97.58 % 202 207
  BitString.swift 85.19 % 92 108
  AnyValueCoderTests.swift 93.10 % 594 638
  CBORStream.swift 92.45 % 49 53
  CBORDecoderTests.swift 97.97 % 2031 2073
  ASN1DERWriter.swift 95.82 % 275 287
  YAMLSerialization.swift 83.08 % 54 65
  KeyedNestedEncoder.swift 84.85 % 56 66
  JSONValueTests.swift 100.00 % 190 190
  ASN1DERBigIntTests.swift

Details

Test Details

PotentCodablesTestsback

ASN1AnyStringTests back

SuccessFailureSkippedExpected Failure⏱️
10 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testCodable()
Successtest-method testCString()
Successtest-method testIndices()
Successtest-method testInit()
Successtest-method testLowercased()
Successtest-method testUnicodeScalars()
Successtest-method testUppercased()
Successtest-method testUTF16()
Successtest-method testUTF8()
Successtest-method testWrite()

ASN1AnyValueTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.02s
Successtest-method testDecode()
Successtest-method testEncode()

ASN1DERBigIntTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testSerialize()

ASN1DERTests back

SuccessFailureSkippedExpected Failure⏱️
7 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWrite1ByteLengthValue()
Successtest-method testWrite2ByteLengthValue()
Successtest-method testWrite3ByteLengthValueHigh()
Successtest-method testWrite3ByteLengthValueLow()
Successtest-method testWrite4ByteLengthValueHigh()
Successtest-method testWrite4ByteLengthValueLow()
Successtest-method testWrite5ByteLengthValueLow()

ASN1DecoderTests back

SuccessFailureSkippedExpected Failure⏱️
86 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testDecodeAnyDictionary()
Successtest-method testDecodeAnyString()
Successtest-method testDecodeAnyStringFromNull()
Successtest-method testDecodeAnyTime()
Successtest-method testDecodeAnyTimeFromNull()
Successtest-method testDecodeBigInt()
Successtest-method testDecodeBigIntFromNull()
Successtest-method testDecodeBigUInt()
Successtest-method testDecodeBigUIntFromNull()
Successtest-method testDecodeBitString()
Successtest-method testDecodeBitStringFromNull()
Successtest-method testDecodeBool()
Successtest-method testDecodeBoolFromNull()
Successtest-method testDecodeData()
Successtest-method testDecodeDataFromNull()
Successtest-method testDecodeDate()
Successtest-method testDecodeDateFromNull()
Successtest-method testDecodeDecimal()
Successtest-method testDecodeDecimalFromNull()
Successtest-method testDecodeDouble()
Successtest-method testDecodeDoubleFromNull()
Successtest-method testDecodeEmptyBigInt()
Successtest-method testDecodeEmptyBigUInt()
Successtest-method testDecodeFloat()
Successtest-method testDecodeFloatFromNull()
Successtest-method testDecodeInt()
Successtest-method testDecodeInt16()
Successtest-method testDecodeInt16FromNull()
Successtest-method testDecodeInt32()
Successtest-method testDecodeInt32FromNull()
Successtest-method testDecodeInt64()
Successtest-method testDecodeInt64FromNull()
Successtest-method testDecodeInt8()
Successtest-method testDecodeInt8FromNull()
Successtest-method testDecodeIntFromNull()
Successtest-method testDecodeInvalidAnyString()
Successtest-method testDecodeInvalidAnyTime()
Successtest-method testDecodeInvalidBigInt()
Successtest-method testDecodeInvalidBigUInt()
Successtest-method testDecodeInvalidBitString()
Successtest-method testDecodeInvalidBool()
Successtest-method testDecodeInvalidData()
Successtest-method testDecodeInvalidDate()
Successtest-method testDecodeInvalidDecimal()
Successtest-method testDecodeInvalidDouble()
Successtest-method testDecodeInvalidFloat()
Successtest-method testDecodeInvalidInt()
Successtest-method testDecodeInvalidInt16()
Successtest-method testDecodeInvalidInt32()
Successtest-method testDecodeInvalidInt64()
Successtest-method testDecodeInvalidInt8()
Successtest-method testDecodeInvalidObjectIdentifier()
Successtest-method testDecodeInvalidString()
Successtest-method testDecodeInvalidUInt()
Successtest-method testDecodeInvalidUInt16()
Successtest-method testDecodeInvalidUInt32()
Successtest-method testDecodeInvalidUInt64()
Successtest-method testDecodeInvalidUInt8()
Successtest-method testDecodeInvalidURL()
Successtest-method testDecodeInvalidUUID()
Successtest-method testDecodeInvalidZonedDate()
Successtest-method testDecodeNegativeBigUInt()
Successtest-method testDecodeNull()
Successtest-method testDecodeObjectIdentifier()
Successtest-method testDecodeObjectIdentifierFromNull()
Successtest-method testDecodeStringFromNull()
Successtest-method testDecodeStrings()
Successtest-method testDecodeTagged()
Successtest-method testDecodeUInt()
Successtest-method testDecodeUInt16()
Successtest-method testDecodeUInt16FromNull()
Successtest-method testDecodeUInt32()
Successtest-method testDecodeUInt32FromNull()
Successtest-method testDecodeUInt64()
Successtest-method testDecodeUInt64FromNull()
Successtest-method testDecodeUInt8()
Successtest-method testDecodeUInt8FromNull()
Successtest-method testDecodeUIntFromNull()
Successtest-method testDecodeURL()
Successtest-method testDecodeURLFromNull()
Successtest-method testDecodeUUID()
Successtest-method testDecodeUUIDFromInvalidData()
Successtest-method testDecodeUUIDFromInvalidString()
Successtest-method testDecodeUUIDFromNull()
Successtest-method testDecodeZonedDate()
Successtest-method testDecodeZonedDateFromNull()

ASN1EncoderTests back

SuccessFailureSkippedExpected Failure⏱️
29 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testEncodeAnyDictionary()
Successtest-method testEncodeAnyString()
Successtest-method testEncodeAnyTime()
Successtest-method testEncodeBigInt()
Successtest-method testEncodeBigUInt()
Successtest-method testEncodeBitString()
Successtest-method testEncodeBool()
Successtest-method testEncodeData()
Successtest-method testEncodeDecimal()
Successtest-method testEncodeDouble()
Successtest-method testEncodeFloat()
Successtest-method testEncodeGeneralizedDate()
Successtest-method testEncodeInt16()
Successtest-method testEncodeInt32()
Successtest-method testEncodeInt64()
Successtest-method testEncodeInt8()
Successtest-method testEncodeInt()
Successtest-method testEncodeNull()
Successtest-method testEncodeObjectIdentifier()
Successtest-method testEncodeStrings()
Successtest-method testEncodeTagged()
Successtest-method testEncodeUInt16()
Successtest-method testEncodeUInt32()
Successtest-method testEncodeUInt64()
Successtest-method testEncodeUInt8()
Successtest-method testEncodeUInt()
Successtest-method testEncodeURL()
Successtest-method testEncodeUTCDate()
Successtest-method testEncodeUUID()

ASN1SchemaDecodeTests back

SuccessFailureSkippedExpected Failure⏱️
61 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testDecodeAny()
Successtest-method testDecodeBitString()
Successtest-method testDecodeBitStringWithSize()
Successtest-method testDecodeBitStringWithSizeInvalid()
Successtest-method testDecodeChoiceWithLotsOfOptions2()
Successtest-method testDecodeChoiceWithLotsOfOptions()
Successtest-method testDecodeExplicitAmbiguousSchema()
Successtest-method testDecodeExplicitWithDefault()
Successtest-method testDecodeExplicitWithInvalidData()
Successtest-method testDecodeExplictTaggedInteger()
Successtest-method testDecodeExplictTaggedSequenceOf()
Successtest-method testDecodeExplictTaggedSetOf()
Successtest-method testDecodeGeneralizedTime()
Successtest-method testDecodeGeneralizedTimeWrongKind()
Successtest-method testDecodeImplicitAmbiguousSchemaThrowsError()
Successtest-method testDecodeImplictTaggedInteger()
Successtest-method testDecodeImplictTaggedSequenceOf()
Successtest-method testDecodeImplictTaggedSetOf()
Successtest-method testDecodeInteger()
Successtest-method testDecodeIntegerWithAllowed()
Successtest-method testDecodeIntegerWithAllowedInvalid()
Successtest-method testDecodeObjectIdentifier()
Successtest-method testDecodeObjectIdentifierWithAllowed()
Successtest-method testDecodeObjectIdentifierWithAllowedInvalid()
Successtest-method testDecodeOctetString()
Successtest-method testDecodeOctetStringWithSize()
Successtest-method testDecodeOctetStringWithSizeInvalid()
Successtest-method testDecodeOptional()
Successtest-method testDecodeSetOf()