# CutBox.app

## Coverage Report

#### Created: 2024-03-12 03:40

    .../Source/App/JSFuncSearchPreview/JSFunItems/JSFuncItemTableRowTextView.swift

    Line

    Count

    Source

    1

    //

    2

    //  JSFuncItemTableRowTextView.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason Milkins on 17/5/18.

    6

    //  Copyright © 2018-2023 ocodo. All rights reserved.

    7

    //

    8

    import Cocoa

    9

    10

    class JSFuncItemTableRowTextView: ItemTableRowTextView {

    11

    12

    4

        override func setup() {

    13

    4

            guard let data = self.data else {

    14

    1

                fatalError("Data must be initialized on row view before setup.")

    15

    4

            }

    16

    4

    17

    4

            guard let titleString = data["string"] as? String else {

    18

    1

                fatalError("Data must contain key: string")

    19

    4

            }

    20

    4

    21

    4

            self.title.stringValue = titleString

    22

    4

                .trimmingCharacters(in: .whitespacesAndNewlines)

    23

    4

        }

    24

    }