Skip to content

Commit

Permalink
- bring test coverage up to >98%
Browse files Browse the repository at this point in the history
- remove Bech32 as its unused
- fix issue with verify function
- remove unused/old functions
- add more tests
  • Loading branch information
simonmcl committed Sep 18, 2023
1 parent f52cc37 commit 0ec32de
Show file tree
Hide file tree
Showing 8 changed files with 287 additions and 311 deletions.
32 changes: 32 additions & 0 deletions .swiftpm/KukaiCryptoSwift.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"configurations" : [
{
"id" : "F1EB509B-4128-4914-BD49-6306AE2AF23E",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"codeCoverage" : {
"targets" : [
{
"containerPath" : "container:",
"identifier" : "KukaiCryptoSwift",
"name" : "KukaiCryptoSwift"
}
]
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "KukaiCryptoSwiftTests",
"name" : "KukaiCryptoSwiftTests"
}
}
],
"version" : 1
}
97 changes: 97 additions & 0 deletions .swiftpm/xcode/xcshareddata/xcschemes/KukaiCryptoSwift.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KukaiCryptoSwift"
BuildableName = "KukaiCryptoSwift"
BlueprintName = "KukaiCryptoSwift"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KukaiCryptoSwiftTests"
BuildableName = "KukaiCryptoSwiftTests"
BlueprintName = "KukaiCryptoSwiftTests"
ReferencedContainer = "container:">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:.swiftpm/KukaiCryptoSwift.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KukaiCryptoSwiftTests"
BuildableName = "KukaiCryptoSwiftTests"
BlueprintName = "KukaiCryptoSwiftTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "KukaiCryptoSwift"
BuildableName = "KukaiCryptoSwift"
BlueprintName = "KukaiCryptoSwift"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
221 changes: 0 additions & 221 deletions Sources/KukaiCryptoSwift/Base58/Bech32.swift

This file was deleted.

Loading

0 comments on commit 0ec32de

Please sign in to comment.