swhitty / SwiftDraw

Compare 2dd3743 ... +2 ... a579949

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -31,7 +31,7 @@
Loading
31 31
32 32
import Foundation
33 33
34 -
extension XMLFormatter {
34 +
extension XML.Formatter {
35 35
  
36 36
  struct CoordinateFormatter {
37 37
    var delimeter: Delimeter = .space

@@ -51,15 +51,15 @@
Loading
51 51
    }
52 52
53 53
    static func makeDOM(path: LayerTree.Path, precision: Int) -> String {
54 -
        let formatter = XMLFormatter.CoordinateFormatter(delimeter: .comma,
55 -
                                                         precision: .capped(max: precision))
54 +
        let formatter = XML.Formatter.CoordinateFormatter(delimeter: .comma,
55 +
                                                          precision: .capped(max: precision))
56 56
        return path.segments
57 57
            .map { makeDOM(segment: $0, formatter: formatter) }
58 58
            .joined(separator: " ")
59 59
    }
60 60
61 61
    static func makeDOM(segment: LayerTree.Path.Segment,
62 -
                        formatter: XMLFormatter.CoordinateFormatter) -> String {
62 +
                        formatter: XML.Formatter.CoordinateFormatter) -> String {
63 63
        switch segment {
64 64
        case .move(let point):
65 65
            let point = formatter.format(point.x, point.y)

@@ -29,7 +29,9 @@
Loading
29 29
//  3. This notice may not be removed or altered from any source distribution.
30 30
//
31 31
32 -
struct XML {
32 +
enum XML { /* namespace */ }
33 +
34 +
extension XML {
33 35
  final class Element {
34 36
    
35 37
    let name: String

@@ -76,7 +76,6 @@
Loading
76 76
  }
77 77
}
78 78
79 -
80 79
extension XMLParser {
81 80
  
82 81
  struct ValueParser: AttributeValueParser {

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Learn more Showing 4 files with coverage changes found.

New file SwiftDraw/XML.Formatter.SVG.swift
New
Loading file...
New file SwiftDraw/XML.Formatter.swift
New
Loading file...
Changes in SwiftDraw/LayerTree.Builder.Path.swift
-1
+1
Loading file...
Changes in SwiftDraw/Parser.XML.SVG.swift
-19
+19
Loading file...
Files Coverage
SwiftDraw 0.61% 76.91%
Project Totals (62 files) 76.91%
Loading