# CutBox.app

## Coverage Report

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

    .../Source/App/Preferences/PreferencesService/CutBoxPreferences+JoinAndWrap.swift

    Line

    Count

    Source (jump to first uncovered line)

    1

    //

    2

    //  CutBoxPreferences+JoinAndWrap.swift

    3

    //  CutBox

    4

    //

    5

    //  Created by Jason Milkins on 12/4/18.

    6

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

    7

    //

    8

    9

    extension CutBoxPreferencesService {

    10

    11

    10

        func prepareClips(_ clips: [String]) -> String {

    12

    10

            if clips.count == 1 {

    13

    0

                return clips.first!

    14

    10

            }

    15

    10

    16

    10

            var clip = clips.joined(separator: "\n")

    17

    10

    18

    10

            if useJoinString {

    19

    3

                clip = clips.joined(separator: multiJoinString ?? "")

    20

    10

            }

    21

    10

    22

    10

            if useWrappingStrings {

    23

    3

                let (start, end) = wrappingStrings

    24

    3

                clip = "\(start ?? "")\(clip)\(end ?? "")"

    25

    10

            }

    26

    10

    27

    10

            return clip

    28

    10

        }

    29

    }