(t *testing.T)
| 1019 | } |
| 1020 | |
| 1021 | func TestModel_WorkspaceContextEmptyMessageTracksView(t *testing.T) { |
| 1022 | m := newWorkspaceTestModel() |
| 1023 | m.view = Images |
| 1024 | m.images.SetImages(nil) |
| 1025 | |
| 1026 | body := m.renderWorkspaceBody() |
| 1027 | if !strings.Contains(body, "Select an image to preview it here.") { |
| 1028 | t.Fatalf("expected image-specific empty message, got %q", body) |
| 1029 | } |
| 1030 | if strings.Contains(body, "Select a container or Compose resource to preview it here.") { |
| 1031 | t.Fatal("did not expect the old generic container/Compose empty message") |
| 1032 | } |
| 1033 | } |
| 1034 | |
| 1035 | func TestModel_WorkspaceSwitchViewResetsActivity(t *testing.T) { |
| 1036 | m := newWorkspaceTestModel() |
nothing calls this directly
no test coverage detected