(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func TestSelectNameWithCodespaceName(t *testing.T) { |
| 34 | wantName := "mock-codespace" |
| 35 | |
| 36 | cs := &CodespaceSelector{codespaceName: wantName} |
| 37 | |
| 38 | name, err := cs.SelectName(context.Background()) |
| 39 | |
| 40 | if name != wantName { |
| 41 | t.Errorf("incorrect name: want %s, got %s", wantName, name) |
| 42 | } |
| 43 | |
| 44 | if err != nil { |
| 45 | t.Errorf("unexpected error: %v", err) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func TestFetchCodespaces(t *testing.T) { |
| 50 | var ( |
nothing calls this directly
no test coverage detected