(t *testing.T)
| 1078 | } |
| 1079 | |
| 1080 | func TestModel_ContainersLoadedMsg(t *testing.T) { |
| 1081 | m := newTestModel() |
| 1082 | containers := m.daemon.Containers(nil, 0) |
| 1083 | |
| 1084 | result, _ := m.Update(containersLoadedMsg{containers: containers}) |
| 1085 | m = result.(model) |
| 1086 | |
| 1087 | if m.containers.SelectedContainer() == nil { |
| 1088 | t.Fatal("expected containers to be loaded and selectable") |
| 1089 | } |
| 1090 | } |
| 1091 | |
| 1092 | func TestModel_OperationSuccessMsg(t *testing.T) { |
| 1093 | m := newTestModel() |
nothing calls this directly
no test coverage detected