damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

DamusCacheManagerTests.swift (833B)


      1 //
      2 //  DamusCacheManagerTests.swift
      3 //  damusTests
      4 //
      5 //  Created by Daniel D’Aquino on 2023-10-04.
      6 //
      7 
      8 import Foundation
      9 
     10 import Foundation
     11 import XCTest
     12 @testable import damus
     13 import SwiftUI
     14 
     15 final class DamusCacheManagerTests: XCTestCase {
     16     
     17     override func setUpWithError() throws {
     18         // Put setup code here. This method is called before the invocation of each test method in the class.
     19     }
     20     
     21     override func tearDownWithError() throws {
     22         // Put teardown code here. This method is called after the invocation of each test method in the class.
     23     }
     24     
     25     /// Simple smoke test to check if clearing cache will crash the system
     26     func testCacheManagerSmoke() throws {
     27         for _ in Range(0...20) {
     28             DamusCacheManager.shared.clear_cache(damus_state: test_damus_state)
     29         }
     30     }
     31 }