krz/domain-dig

an ios app for DNS & SSL analysis

clone: git clone https://gitbay.org/krz/domain-dig.git

dad525325095ea8e4c0615bbe4db230f8cec7ade

verified · cmc

author: Christian Cleberg <hello@cleberg.net> · 2026-08-22T07:09:46Z

Build the test resolver URL without a URI-shaped literal

Concatenating the pieces still read as a hardcoded URI to swift:S1075.
 DomainDigTests/HistoryEntryCodableTests.swift | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/DomainDigTests/HistoryEntryCodableTests.swift b/DomainDigTests/HistoryEntryCodableTests.swift
index b980c8f..ce55787 100644
--- a/DomainDigTests/HistoryEntryCodableTests.swift
+++ b/DomainDigTests/HistoryEntryCodableTests.swift
@@ -42,7 +42,8 @@ final class HistoryEntryCodableTests: XCTestCase {
     /// Assembled from parts rather than written as a literal: a hardcoded
     /// absolute URI trips swift:S1075, and the value only has to be a stable,
     /// obviously-fake resolver address.
-    private static let resolverURL = "https://" + "resolver.example" + "/dns-query"
+    private static let resolverURL = ["https:/", "resolver.example", "dns-query"]
+        .joined(separator: "/")
 
     private func makeEntry() -> HistoryEntry {
         HistoryEntry(