| Geliştirici: | Avenga Czechia s.r.o (2) | ||
| Fiyat: | Ücretsiz | ||
| Sıralamalar: | 0 | ||
| Yorumlar: | 0 Yorum Yazın | ||
| Listeler: | 1 + 0 | ||
| Puanlar: | 2 + 0 ¡ | ||
| Mac App Store | |||
Açıklama
https://github.com/raptorxcz/Rubicon
Rubicon generates spys, stub, mocks and dummies for protocols. Generating methods for parent protocol is not supported.
example:
input:
protocol Car {
var name: String? { get }
var color: Int { get set }
@MainActor
func go()
func load(with stuff: Int, label: String) throws -> Int
func isFull() -> Bool
func download() async throws -> [String]
}
output:
spy:
final class CarSpy: Car {
struct Load {
let stuff: Int
let label: String
}
var name: String?
var color: Int
var loadThrowBlock: () -> Void?
var loadReturn: Int
var isFullReturn: Bool
var downloadThrowBlock: () -> Void?
var downloadReturn: [String]
var goCount = 0
var load = [Load]()
var isFullCount = 0
var downloadCount = 0
init(color: Int, loadReturn: Int, isFullReturn: Bool, downloadReturn: [String]) {
self.color = color
self.loadReturn = loadReturn
self.isFullReturn = isFullReturn
self.downloadReturn = downloadReturn
}
func go() {
goCount += 1
}
func load(with stuff: Int, label: String) throws -> Int {
let item = Load(stuff: stuff, label: label)
load.append(item)
try loadThrowBlock?()
return loadReturn
}
func isFull() -> Bool {
isFullCount += 1
return isFullReturn
}
func download() async throws -> [String] {
downloadCount += 1
try downloadThrowBlock?()
return downloadReturn
}
}
stub:
final class CarStub: Car {
var name: String?
var color: Int
var loadThrowBlock: () -> Void?
var loadReturn: Int
var isFullReturn: Bool
var downloadThrowBlock: () -> Void?
var downloadReturn: [String]
init(color: Int, loadReturn: Int, isFullReturn: Bool, downloadReturn: [String]) {
self.color = color
self.loadReturn = loadReturn
self.isFullReturn = isFullReturn
self.downloadReturn = downloadReturn
}
func go() {
}
func load(with stuff: Int, label: String) throws -> Int {
try loadThrowBlock?()
return loadReturn
}
func isFull() -> Bool {
return isFullReturn
}
func download() async throws -> [String] {
try downloadThrowBlock?()
return downloadReturn
}
}
dummy:
final class CarDummy: Car {
var name: String? {
get {
fatalError()
}
}
var color: Int {
get {
fatalError()
}
set {
fatalError()
}
}
func go() {
fatalError()
}
func load(with stuff: Int, label: String) throws -> Int {
fatalError()
}
func isFull() -> Bool {
fatalError()
}
func download() async throws -> [String] {
fatalError()
}
}
usage in tests:
let carSpy = CarSpy()
...
let a1 = carSpy.goCount == 1
let a2 = carSpy.load.count == 1
let a3 = carSpy.load[0].stuff == 2
let a4 = carSpy.load[0].label == "name"
https://github.com/raptorxcz/Rubicon
Xcode extension
Xcode extension can generate test doubles for all or just selected protocols in the current file. The resulting test double can be written to the source file or pasteboard.
Ekran görüntüleri
Fiyat
- Bugün: Ücretsiz
- En az: Ücretsiz
- Maksimum: Ücretsiz
Fiyatları takip et
Geliştirici
- Avenga Czechia s.r.o
- Platformlar: iOS Uygulamalar (1) macOS Uygulamalar (1)
- Listeler: 1 + 0
- Puanlar: 3 + 0 ¡
- Sıralamalar: 0
- Yorumlar: 0
- İndirimler: 0
- Video: 0
- RSS: Abone ol
Puanlar
-
- 3,092 바람처어럼
- +1
-
- 10,126 Simon Chan
- +1
Sıralamalar
0 ☹️
Listeler
Yorumlar
İnceleme yazan ilk kişi siz olun 🌟
Ek Bilgi
- Sürüm: 3.0.0
- Kategori:
macOS Uygulamalar›Araçlar - İşletim Sistemleri:
macOS,macOS 13.3 ve sonrası - Boyut:
9 Mb - Desteklenen diller:
English - İçerik Derecelendirmesi:
4+ - Mac App Store Kullanıcı Oyu:
0 - Güncellendi:
- Satışa çıkış tarihi:
- 🌟 Paylaş
- Mac App Store
Şunları da beğenebilirsiniz
-
- TestFlight
- macOS Uygulamalar: Araçlar Göre: Apple
- Ücretsiz
- Listeler: 9 + 1 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 7 + 778,391 (4.7) Sürüm: 4.0.1 TestFlight makes it easy to test beta versions of apps and App Clips to provide valuable feedback to developers before they release their apps on the App Store. Developers can invite ... ⥯
-
- WebSSH - SSH, SFTP & Tools
- macOS Uygulamalar: Araçlar Göre: MENGUS ARNAUD
- Ücretsiz
- Listeler: 3 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 10 + 2,300 (4.7) Sürüm: 30.5 Whether you re on the go or at your desk, WebSSH keeps you connected anytime, anywhere! ٩(^ ^)۶ WebSSH is a powerful and user-friendly SSH, SFTP, Telnet, and Port Forwarding client for ⥯
-
- Bluetooth Inspector
- macOS Uygulamalar: Araçlar Göre: George Garside
- Ücretsiz
- Listeler: 2 + 0 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 2 + 1,412 (4.6) Sürüm: 1.7.3 Discover nearby Bluetooth peripherals and inspect their services for information and characteristics. View information and signal strength for all peripherals and devices, updating in ... ⥯
-
- Pastel
- macOS Uygulamalar: Araçlar Göre: Steven Troughton-Smith
- Ücretsiz
- Listeler: 3 + 1 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 2 + 1,340 (4.7) Sürüm: 2.4.1 Capture and collect color palettes with Pastel! Pastel is an app for amateur developers & artists (like us!) that lets you build up a library of color palettes to use in your projects. ⥯
-
- HTTPBot: API & HTTP Client
- macOS Uygulamalar: Araçlar Göre: Arvindh Sukumar
- Ücretsiz
- Listeler: 3 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 7 + 1,306 (4.5) Sürüm: 2025.4.1 HTTPBot is a powerful API client and debugger that lets you send HTTP/HTTPs requests, connect to WebSockets, inspect JSON & HTML responses, and debug APIs on the go. With HTTPBot, you ... ⥯
-
- SSH Client - Secure ShellFish
- macOS Uygulamalar: Araçlar Göre: Anders Borum
- Ücretsiz
- Listeler: 4 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 11 + 1,131 (4.8) Sürüm: 2025.34 Lightning fast SSH terminal with remote file access. No other app fuses your SSH servers and iOS devices as well as Secure ShellFish. Tap Get and see for yourself. Terminal supports ... ⥯
-
- ServerCat - SSH Terminal
- macOS Uygulamalar: Araçlar Göre: Early Moon, LLC
- Ücretsiz
- Listeler: 3 + 0 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 3 + 944 (4.6) Sürüm: 1.30.0 ServerCat is a Linux monitor and Docker Management & SSH Terminal app. ServerCat makes it easy to monitor your server status on your mobile. It shows detail running status of your ... ⥯
-
- HTML Editor
- macOS Uygulamalar: Araçlar Göre: Intrepid
- Ücretsiz
- Listeler: 0 + 0 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 5 + 634 (4.2) Sürüm: 2.9 HTML Editor is a lightweight HTML editor complete with syntax highlighting, focused code completion suggestions and a live preview panel. With HTML Editor, you can open any existing ... ⥯
-
- Resolutioner
- macOS Uygulamalar: Araçlar Göre: Sun Apps, LLC
- Ücretsiz
- Listeler: 0 + 0 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 1 + 404 (4.5) Sürüm: 1.0 Resolutioner is a simple utility app for calculating resolutions, aspect ratios, and saving resolutions for future reference. The resolution calculator helps you to calculate a ... ⥯
-
- SSH Client - iSH, SFTP, Termux
- macOS Uygulamalar: Araçlar Göre: Moon Technolabs Pvt Ltd
- * Ücretsiz
- Listeler: 1 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 5 + 388 (3.5) Sürüm: 4.9.2 Here is one of the most intelligent & advanced SSH Client apps to manage and connect remote servers for your iOS and Mac devices About SSH Client: SSH Client is an on-the-go SSH-Telnet ⥯
-
- DetailsPro
- macOS Uygulamalar: Araçlar Göre: Fun Focus Software LLC
- * Ücretsiz
- Listeler: 0 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 3 + 383 (4.8) Sürüm: 6.1.0 App Store featured in Great on iPad and Must-Have Apps DetailsPro is the visual design tool that brings your app ideas to life no coding required. - Mock up a new app idea in minutes - ⥯
-
- Interactful
- macOS Uygulamalar: Araçlar Göre: Harley Thomas
- Ücretsiz
- Listeler: 1 + 2 Sıralamalar: 0 Yorumlar: 0
- Puanlar: 1 + 364 (4.9) Sürüm: 5.1.1 An interactive guide for SwiftUI to help designers and developers build better apps. Code snippets and interactive examples for components like Sliders, Toggles, Lists, and Grids ... ⥯