localhost1978's picture
download
raw
545 Bytes
import Testing
@testable import SSK_Providers
@Suite("DocGen external redactor")
struct DocGenExternalRedactorTests {
@Test("Long prefixes are replaced before short prefixes")
func longestPrefixFirst() throws {
let redactor = DocGenExternalRedactor(sensitivePrefixes: [
(value: "/Users/test", label: "<home>"),
(value: "/Users/test/SSK", label: "<workspace>")
])
let result = try redactor.redact("/Users/test/SSK/file.swift")
#expect(result == "<workspace>/file.swift")
}
}

Xet Storage Details

Size:
545 Bytes
·
Xet hash:
61e9c917dabe5c722c313390458ba19e895495c164dd89120f0f5d2035adaadb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.