summaryrefslogtreecommitdiff
path: root/HutchTests/RepositoryACLViewModelTests.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 20:07:53 -0500
committerChristian Cleberg <[email protected]>2026-04-13 20:07:53 -0500
commit312e535f400f31714b3750de5222a1f6a8e5bcda (patch)
treedfa0d9dfcfd08187befa79cf5d8afc4da9fef860 /HutchTests/RepositoryACLViewModelTests.swift
parentfe1ccc69661603d419a642a450e4ac9e1258adb0 (diff)
downloadhutch-312e535f400f31714b3750de5222a1f6a8e5bcda.tar.gz
hutch-312e535f400f31714b3750de5222a1f6a8e5bcda.tar.bz2
hutch-312e535f400f31714b3750de5222a1f6a8e5bcda.zip
fix: sonarqube code smell fixesv3.1.4
Diffstat (limited to 'HutchTests/RepositoryACLViewModelTests.swift')
-rw-r--r--HutchTests/RepositoryACLViewModelTests.swift20
1 files changed, 11 insertions, 9 deletions
diff --git a/HutchTests/RepositoryACLViewModelTests.swift b/HutchTests/RepositoryACLViewModelTests.swift
index 9c3f929..9640b93 100644
--- a/HutchTests/RepositoryACLViewModelTests.swift
+++ b/HutchTests/RepositoryACLViewModelTests.swift
@@ -110,15 +110,17 @@ struct RepositoryACLViewModelTests {
@MainActor
private func makeRepository() -> RepositorySummary {
RepositorySummary(
- id: 1,
- rid: "rid-1",
- service: .git,
- name: "repo",
- description: nil,
- visibility: .public,
- updated: .now,
- owner: Entity(canonicalName: "~owner"),
- head: nil
+ fields: .init(
+ id: 1,
+ rid: "rid-1",
+ service: .git,
+ name: "repo",
+ description: nil,
+ visibility: .publicVisibility,
+ updated: .now,
+ owner: Entity(canonicalName: "~owner"),
+ head: nil
+ )
)
}
}