diff options
| author | Christian Cleberg <[email protected]> | 2026-04-13 20:07:53 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-13 20:07:53 -0500 |
| commit | 312e535f400f31714b3750de5222a1f6a8e5bcda (patch) | |
| tree | dfa0d9dfcfd08187befa79cf5d8afc4da9fef860 /HutchTests/RepositoryListViewModelTests.swift | |
| parent | fe1ccc69661603d419a642a450e4ac9e1258adb0 (diff) | |
| download | hutch-3.1.4.tar.gz hutch-3.1.4.tar.bz2 hutch-3.1.4.zip | |
fix: sonarqube code smell fixesv3.1.4
Diffstat (limited to 'HutchTests/RepositoryListViewModelTests.swift')
| -rw-r--r-- | HutchTests/RepositoryListViewModelTests.swift | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/HutchTests/RepositoryListViewModelTests.swift b/HutchTests/RepositoryListViewModelTests.swift index 07f66aa..5fe3974 100644 --- a/HutchTests/RepositoryListViewModelTests.swift +++ b/HutchTests/RepositoryListViewModelTests.swift @@ -79,15 +79,17 @@ struct RepositoryListViewModelTests { branch: String = "main" ) -> RepositorySummary { RepositorySummary( - id: id, - rid: "rid-\(id)", - service: service, - name: name, - description: description, - visibility: .public, - updated: Date(timeIntervalSince1970: TimeInterval(id)), - owner: Entity(canonicalName: owner), - head: Reference(name: branch, target: nil) + fields: .init( + id: id, + rid: "rid-\(id)", + service: service, + name: name, + description: description, + visibility: .publicVisibility, + updated: Date(timeIntervalSince1970: TimeInterval(id)), + owner: Entity(canonicalName: owner), + head: Reference(name: branch, target: nil) + ) ) } } |
