Skip to content

Commit

Permalink
Tests: Remove unused code in TestCase.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 3, 2024
1 parent 27d8247 commit c5da9df
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Tests/WasmKitTests/Spectest/TestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ enum Result {
case passed
case failed(String)
case skipped(String)
// case `internal`(Swift.Error)

var banner: String {
switch self {
Expand All @@ -96,8 +95,6 @@ enum Result {
return "[FAILED]"
case .skipped:
return "[SKIPPED]"
// case .internal:
// return "[INTERNAL]"
}
}
}
Expand Down Expand Up @@ -328,11 +325,7 @@ extension WastRunContext {
return .skipped("validation is no implemented yet")

case .invoke(let invoke):
do {
_ = try wastInvoke(call: invoke)
} catch {
return .failed("\(error)")
}
_ = try wastInvoke(call: invoke)
return .passed
}
}
Expand All @@ -343,7 +336,6 @@ extension WastRunContext {
return try wastInvoke(call: invoke)
case .get(let module, let globalName):
let instance = try deriveInstance(by: module)
let result: WasmKit.Value
guard case let .global(global) = instance.export(globalName) else {
throw SpectestError("no global export with name \(globalName) in a module instance \(instance)")
}
Expand Down

0 comments on commit c5da9df

Please sign in to comment.