Swift Package Index



  • The latest stable release is 0.0.1. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • 0.0.1 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.0.1 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

MemoryLeakTestKit

Swift 4.2 compatible CocoaPods Carthage Swift Package Manager MIT license

A testing library to detect memory leaks for Swift.

This library is under development.

Supported Platforms

Platform Build Status
Linux CircleCI
iOS Build Status

Usage

import MemoryLeakTestKit


let memoryLeaks = detectLeaks {
    // Create a instance
    return target
}

XCTAssertTrue(
    memoryLeaks.leakedObjects.isEmpty,
    memoryLeaks.prettyDescription
)

Example output

Summary:
    Found 2 leaked objects

Leaked objects:
    0:
        Description: Node
        Type: Node
        Location: (root).linkedNodes[0]
        Circular Paths: 
            self.linkedNodes[1] === self
    
    1:
        Description: Node
        Type: Node
        Location: (root)
        Circular Paths: 
            self.linkedNodes[0].linkedNodes[0] === self

License

MIT