Skip to content

feat!: move to swift based framework for didcomm, jose and peer did #336

feat!: move to swift based framework for didcomm, jose and peer did

feat!: move to swift based framework for didcomm, jose and peer did #336

GitHub Actions / Xcode test results succeeded Feb 17, 2024 in 0s

Xcode test results

Testing workspace atala-prism-wallet-sdk-swift with scheme AtalaPRISMSDK-Package

Summary

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

Test Summary

CastorTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class DIDParserTests22000
test-class DIDUrlParserTests11000
test-class MultiCodecTests11000
test-class PeerDIDCreationTests22000
test-class PrismDIDMethodIdTests11000
test-class PrismDIDPublicKeyTests11000

DomainTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class DomainTests00000

MercuryTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class MercuryTests00000

PlutoTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class CDDIDPairDAOTests55000
test-class CDDIDPrivateKeyDAOTestsTests44000
test-class CDMessagesDAOTests33000
test-class CDRegisteredDIDDaoTests66000

PolluxTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class AnoncredsTests33000
test-class JWTTests11000

PrismAgentTests

  • Device: iPhone 14, 17.2 (21C62)
  • SDK: Simulator - iOS 17.0, 17.0
TestTotalSuccessFailureSkippedExpected Failure
test-class CheckTests11000
test-class ConnectionRunnerTests11000
test-class DIDCommInvitationRunnerTests22000
test-class HandshakeRequestTests22000
test-class IssueCredentialTests33000
test-class OfferCredentialTests22000
test-class PickupRunnerTests22000
test-class PresentationTests33000
test-class PrismOnboardingInvitationTests22000
test-class ProposeCredentialTests22000
test-class ProposePresentationTests33000
test-class RequestCredentialTests33000
test-class RequestPresentationTests33000

Failure Failures

All tests passed 🎉


Code Coverage

Coverage Covered Executable
Apollo 31.96 % 217 679
  CreateEd25519KeyPairOperation.swift 54.55 % 6 11
  Secp256k1Key.swift 55.26 % 42 76
  CreateSec256k1KeyPairOperation.swift 100.00 % 12 12
  CreateSeedOperation.swift 0.00 % 0 27
  ApolloImpl+KeyRestoration.swift 0.00 % 0 65
  ApolloImpl+Public.swift 60.14 % 89 148
  LinkSecret.swift 0.00 % 0 33
  Ed25519Key.swift 39.29 % 22 56
  Array+KotlinArray.swift 0.00 % 0 9
  CreateX25519KeyPairOperation.swift 58.33 % 7 12
  RandomMnemonicsOperation.swift 0.00 % 0 3
  Secp256k1Key+Exportable.swift 0.00 % 0 60
  ApolloImpl.swift 100.00 % 1 1
  X25519Key+Exportable.swift 0.00 % 0 44
  KotlinByteArray+Helper.swift 51.72 % 15 29
  Ed25519Key+Exportable.swift 0.00 % 0 44
  X25519Key.swift 46.94 % 23 49
AtalaPrismSDK 0.00 % 0 0
Authenticate 0.00 % 0 0
Builders 100.00 % 36 36
  PolluxBuilder.swift 100.00 % 6 6
  MercuryBuilder.swift 100.00 % 14 14
  ApolloBuilder.swift 100.00 % 4 4
  PlutoBuilder.swift 100.00 % 6 6
  CastorBuilder.swift 100.00 % 6 6
Castor 18.83 % 603 3203
  PeerDIDResolver.swift 48.86 % 129 264
  node_models.pb.swift 11.25 % 228 2026
  Multicodec.swift 55.17 % 16 29
  LongFormPrismDID.swift 0.00 % 0 14
  Sha256.swift 0.00 % 0 26
  CastorImpl.swift 72.73 % 8 11
  CastorImpl+Public.swift 38.78 % 19 49
  common_models.pb.swift 0.00 % 0 262
  VerifyDIDSignatureOperation.swift 0.00 % 0 37
  LongFormPrismDIDResolver.swift 0.86 % 1 116
  PrismDIDMethodId.swift 50.00 % 12 24
  CreatePeerDIDOperation.swift 92.00 % 69 75
  CreatePrismDIDOperation.swift 0.00 % 0 57
  PrismDIDPublicKey.swift 69.57 % 80 115
  VarInt.swift 41.84 % 41 98
CastorTests 25.55 % 1051 4113
  MultiCodecTests.swift 100.00 % 7 7
  PrismDIDPublicKey.swift 69.57 % 80 115
  CreateSec256k1KeyPairOperation.swift 100.00 % 12 12
  PrismDIDMethodId.swift 50.00 % 12 24
  LongFormPrismDID.swift 0.00 % 0 14
  Multicodec.swift 55.17 % 16 29
  ApolloImpl+KeyRestoration.swift 0.00 % 0 65
  CreateX25519KeyPairOperation.swift 58.33 % 7 12
  DIDParserTests.swift 100.00 % 57 57
  node_models.pb.swift 11.25 % 228 2026
  common_models.pb.swift 0.00 % 0 262
  VarInt.swift 41.84 % 41 98
  CreatePeerDIDOperation.swift 92.00 % 69 75
  LinkSecret.swift 0.00 % 0 33
  ApolloImpl+Public.swift 60.14 % 89 148
  Secp256k1Key.swift 55.26 % 42 76
  PrismDIDPublicKeyTests.swift 100.00 % 31 31
  DIDUrlParserTests.swift 100.00 % 65 65
  Ed25519Key+Exportable.swift 0.00 % 0 44
  LongFormPrismDIDResolver.swift 0.86 % 1 116
  CreateEd25519KeyPairOperation.swift 54.55 % 6 11
  Secp256k1Key+Exportable.swift 0.00 % 0 60
  CreateSeedOperation.swift 0.00 % 0 27
  CastorImpl.swift 72.73 % 8 11
  KotlinByteArray+Helper.swift 51.72 % 15 29
  VerifyDIDSignatureOperation.swift 0.00 % 0 37
  X25519Key.swift 46.94 % 23 49
  PrismDIDMethodIdTests.swift 100.00 % 15 15
  RandomMnemonicsOperation.swift 0.00 % 0 3
  Ed25519Key.swift 39.29 % 22 56
  PeerDIDResolver.swift 48.86 % 129 264
  PeerDIDCreationTests.swift 100.00 % 56 56
  Sha256.swift 0.00 % 0 26
  CastorImpl+Public.swift 38.78 % 19 49
  CreatePrismDIDOperation.swift 0.00 % 0 57
  X25519Key+Exportable.swift 0.00 % 0 44
  Array+KotlinArray.swift 0.00 % 0 9
  ApolloImpl.swift 100.00 % 1 1
Domain 30.01 % 271 903
  Pollux.swift 0.00 % 0 6
  ExportableImportableKey.swift 0.00 % 0 54
  MessageAttachment.swift 20.00 % 18 90
  DIDUrl.swift 66.67 % 48 72
  StorableCredential.swift 0.00 % 0 2
  StorableKey.swift 0.00 % 0 2
  Session.swift 0.00 % 0 4
  DID.swift 100.00 % 24 24
  KeychainStorableKey.swift 0.00 % 0 12
  SignableKey.swift 0.00 % 0 7
  Keys.swift 100.00 % 3 3
  Message.swift 84.38 % 27 32
  DerivableKey.swift 92.00 % 23 25
  Errors.swift 6.33 % 21 332
  Map+AsyncAwait.swift 0.00 % 0 9
  Seed.swift 100.00 % 3 3
  DIDPair.swift 100.00 % 5 5
  DIDDocument.swift 29.41 % 35 119
  Message+Codable.swift 80.00 % 48 60
  Secret.swift 0.00 % 0 5
  Credential.swift 43.75 % 14 32
  Castor.swift 0.00 % 0 3
  ProvableCredential.swift 100.00 % 2 2
DomainTests 30.01 % 271 903
  Message+Codable.swift 80.00 % 48 60
  MessageAttachment.swift 20.00 % 18 90
  Keys.swift 100.00 % 3 3
  KeychainStorableKey.swift 0.00 % 0 12
  DIDDocument.swift 29.41 % 35 119
  DIDUrl.swift 66.67 % 48 72
  ExportableImportableKey.swift 0.00 % 0 54
  DID.swift 100.00 % 24 24
  ProvableCredential.swift 100.00 % 2 2
  Map+AsyncAwait.swift 0.00 % 0 9
  Message.swift 84.38 % 27 32
  Secret.swift 0.00 % 0 5
  DerivableKey.swift 92.00 % 23 25
  StorableKey.swift 0.00 % 0 2
  Session.swift 0.00 % 0 4
  Castor.swift 0.00 % 0 3
  Errors.swift 6.33 % 21 332
  Seed.swift 100.00 % 3 3
  SignableKey.swift 0.00 % 0 7
  StorableCredential.swift 0.00 % 0 2
  Pollux.swift 0.00 % 0 6
  DIDPair.swift

Details

Test Details

CastorTestsback

DIDParserTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testInvalidDIDs()
Successtest-method testValidDIDs()

DIDUrlParserTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testValidDIDUrls()

MultiCodecTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testMulticodecCoding()

PeerDIDCreationTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.02s
Successtest-method testPeerDIDCreation()
Successtest-method testResolvePeerDID()

PrismDIDMethodIdTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.24s
Successtest-method testSectionsValidation()

PrismDIDPublicKeyTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.09s
Successtest-method testFromProto()

DomainTestsback

DomainTests back

SuccessFailureSkippedExpected Failure⏱️
0 (0%)0 (0%)0 (0%)0 (0%)0.00s

All tests passed 🎉

MercuryTestsback

MercuryTests back

SuccessFailureSkippedExpected Failure⏱️
0 (0%)0 (0%)0 (0%)0 (0%)0.00s

All tests passed 🎉

PlutoTestsback

CDDIDPairDAOTests back

SuccessFailureSkippedExpected Failure⏱️
5 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testGetHolderDIDPair()
Successtest-method testStoreNoDuplicatedOtherDIDPair()
Successtest-method testStoreSingleDIDPair()
Successtest-method testWhenHolderNotPersistedThenThrowErrorOnAddingPair()
Successtest-method testWhenStoreHolderDIDAlreadyPairedThenThrowError()

CDDIDPrivateKeyDAOTestsTests back

SuccessFailureSkippedExpected Failure⏱️
4 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testGetAllDIDs()
Successtest-method testGetDIDInfoByDID()
Successtest-method testStoreNoDuplicatedDID()
Successtest-method testStoreSingleDID()

CDMessagesDAOTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testGetMessageForDIDPairComponent()
Successtest-method testStoreMessage()
Successtest-method testStoreNoDuplicatedMessage()

CDRegisteredDIDDaoTests back

SuccessFailureSkippedExpected Failure⏱️
6 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testGetAllDIDs()
Successtest-method testGetDIDInfoByAlias()
Successtest-method testGetDIDInfoByDID()
Successtest-method testGetDIDInfoByKeyIndex()
Successtest-method testStoreNoDuplicatedDID()
Successtest-method testStoreSingleDID()

PolluxTestsback

AnoncredsTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)1.47s
Successtest-method testCreateMessageRequest()
Successtest-method testParseIssueCredential()
Successtest-method testProvingCredential()

JWTTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)0.01s
Successtest-method testParseJWTCredential()

PrismAgentTestsback

CheckTests back

SuccessFailureSkippedExpected Failure⏱️
1 (100%)0 (0%)0 (0%)0 (0%)3.88s
Successtest-method testOOB()

ConnectionRunnerTests back

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

DIDCommInvitationRunnerTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidInvitationTypeThenThrowError()
Successtest-method testWhenReceivedOOBUrlThenParseMessage()

HandshakeRequestTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testHandshakeRequestInitFromInvitationMessage()
Successtest-method testHandshakeRequestMakeMessage()

IssueCredentialTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidIssueMessageThenInitIssueCredential()
Successtest-method testWhenValidIssueMessageThenInitIssueCredential()
Successtest-method testWhenValidRequestMessageThenInitIssueCredential()

OfferCredentialTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidOfferMessageThenInitOfferCredential()
Successtest-method testWhenValidOfferMessageThenInitOfferCredential()

PickupRunnerTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenReceiveDeliveryMessageThenParseMessages()
Successtest-method testWhenReceiveNotDeliveryMessageThenThrowError()

PresentationTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidPresentationMessageThenThrowError()
Successtest-method testWhenValidPresentationMessageThenInitPresentation()
Successtest-method testWhenValidRequestMessageThenInitPresentation()

PrismOnboardingInvitationTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.05s
Successtest-method testWhenInvalidTypeInvitationThenReturn()
Successtest-method testWhenValidJsonInvitationThenReturn()

ProposeCredentialTests back

SuccessFailureSkippedExpected Failure⏱️
2 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidProposeMessageThenInitProposeCredential()
Successtest-method testWhenValidProposeMessageThenInitProposeCredential()

ProposePresentationTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidProposePresentationMessageThenThrowError()
Successtest-method testWhenValidProposePresentationMessageThenInitProposePresentation()
Successtest-method testWhenValidRequestMessageThenInitProposePresentation()

RequestCredentialTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidRequestMessageThenInitRequestCredential()
Successtest-method testWhenValidOfferMessageThenInitRequestCredential()
Successtest-method testWhenValidRequestMessageThenInitRequestCredential()

RequestPresentationTests back

SuccessFailureSkippedExpected Failure⏱️
3 (100%)0 (0%)0 (0%)0 (0%)0.00s
Successtest-method testWhenInvalidRequestPresentationMessageThenThrowError()
Successtest-method testWhenValidProposalMessageThenInitRequestPresentation()
Successtest-method testWhenValidRequestPresentationMessageThenInitRequestPresentation()