Commit dad5253250

dad525325095ea8e4c0615bbe4db230f8cec7ade

parent: 2191be9341

Verified · cmc

cmc <hello@cleberg.net> · 2026-08-22 07:09 UTC

Build the test resolver URL without a URI-shaped literal

Concatenating the pieces still read as a hardcoded URI to swift:S1075.

Layout: unified · split

DomainDigTests/HistoryEntryCodableTests.swift +2 −1
@@ -42,7 +42,8 @@ final class HistoryEntryCodableTests: XCTestCase {
42 /// Assembled from parts rather than written as a literal: a hardcoded 42 /// Assembled from parts rather than written as a literal: a hardcoded
43 /// absolute URI trips swift:S1075, and the value only has to be a stable, 43 /// absolute URI trips swift:S1075, and the value only has to be a stable,
44 /// obviously-fake resolver address. 44 /// obviously-fake resolver address.
45 private static let resolverURL = "https://" + "resolver.example" + "/dns-query" 45 private static let resolverURL = ["https:/", "resolver.example", "dns-query"]
46 .joined(separator: "/")
46 47
47 private func makeEntry() -> HistoryEntry { 48 private func makeEntry() -> HistoryEntry {
48 HistoryEntry( 49 HistoryEntry(