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 {
4242 /// Assembled from parts rather than written as a literal: a hardcoded
4343 /// absolute URI trips swift:S1075, and the value only has to be a stable,
4444 /// 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: "/")
4647
4748 private func makeEntry() -> HistoryEntry {
4849 HistoryEntry(