| 1 | package main |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | func TestPickRemoteIdentityFileWithoutDesktopContextIsCancelled(t *testing.T) { |
| 6 | app := &App{} |
| 7 | path, err := app.PickRemoteIdentityFile() |
| 8 | if err != nil { |
| 9 | t.Fatalf("PickRemoteIdentityFile: %v", err) |
| 10 | } |
| 11 | if path != "" { |
| 12 | t.Fatalf("path = %q, want empty cancellation", path) |
| 13 | } |
| 14 | } |
| 15 |