mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-05 04:27:09 +00:00
refactor(ioscompanion): inline single-use devicectl argv builders
This commit is contained in:
1 parent
82dc7566a1
commit
27e2cbf956
2 files changed
+2
-25
No files matched your search
@@ -196,19 +196,6 @@ func TestDeviceCloseStopsRunnerAndTunnel(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestDevicectlReinstallArgs(t *testing.T) {
|
||||
uninstall := devicectlUninstallArgs("CORE-1", "com.example.app")
|
||||
wantUninstall := []string{"devicectl", "device", "uninstall", "app", "--device", "CORE-1", "com.example.app"}
|
||||
if !equalArgs(uninstall, wantUninstall) {
|
||||
t.Fatalf("uninstall args = %v, want %v", uninstall, wantUninstall)
|
||||
}
|
||||
install := devicectlInstallArgs("CORE-1", "/tmp/app.app")
|
||||
wantInstall := []string{"devicectl", "device", "install", "app", "--device", "CORE-1", "/tmp/app.app"}
|
||||
if !equalArgs(install, wantInstall) {
|
||||
t.Fatalf("install args = %v, want %v", install, wantInstall)
|
||||
}
|
||||
}
|
||||
|
||||
func equalArgs(got, want []string) bool {
|
||||
if len(got) != len(want) {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user