CutBox.app

Coverage Report

Created: 2024-03-12 03:40

.../Source/Utilities/CutBoxNSAppProvider.swift
Line
Count
Source (jump to first uncovered line)
1
//
2
//  CutBoxNSAppProvider.swift
3
//  CutBox
4
//
5
//  Created by jason on 13/9/23.
6
//  Copyright © 2023 ocodo. All rights reserved.
7
//
8
9
import Foundation
10
import Cocoa
11
12
class CutBoxNSAppProvider {
13
    static var testing: Bool = false
14
    var terminateWasCalled = false
15
16
1
    func terminate(_ sender: CutBoxBaseMenuItem) {
17
1
        if Self.testing {
18
1
            terminateWasCalled = true
19
1
        } else {
20
0
            NSApp.terminate(sender)
21
1
        }
22
1
    }
23
}