-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from noppefoxwolf/hotfix/FatalWhenPlaybackFailure
assetのreset失敗時にpauseなどを呼ぶとfatalErrorになる問題
- Loading branch information
Showing
8 changed files
with
267 additions
and
43 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// AssetTests.swift | ||
// Kitsunebi | ||
// | ||
// Created by Tomoya Hirano on 2020/11/13. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
@testable import Kitsunebi | ||
import XCTest | ||
|
||
class AssetTests: XCTestCase { | ||
func testNotFatalBeforeReset() { | ||
let asset = Asset(url: URL(fileURLWithPath: "")) | ||
_ = asset.status | ||
XCTAssert(true, "Pass") | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
// | ||
// Tests.swift | ||
// Tests | ||
// | ||
// Created by Tomoya Hirano on 2020/11/13. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
import XCTest | ||
import Kitsunebi | ||
|
||
class Tests: XCTestCase { | ||
|
||
override func setUp() { | ||
super.setUp() | ||
|
||
override func setUpWithError() throws { | ||
// Put setup code here. This method is called before the invocation of each test method in the class. | ||
} | ||
override func tearDown() { | ||
|
||
override func tearDownWithError() throws { | ||
// Put teardown code here. This method is called after the invocation of each test method in the class. | ||
super.tearDown() | ||
} | ||
func testExample() { | ||
|
||
func testExample() throws { | ||
// This is an example of a functional test case. | ||
XCTAssert(true, "Pass") | ||
// Use XCTAssert and related functions to verify your tests produce the correct results. | ||
} | ||
func testPerformanceExample() { | ||
|
||
func testPerformanceExample() throws { | ||
// This is an example of a performance test case. | ||
self.measure() { | ||
measure { | ||
// Put the code you want to measure the time of here. | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters