()
| 45 | } |
| 46 | |
| 47 | func (i *Instance) IsRunning() bool { |
| 48 | info, err := utils.DockerClient.ContainerInspect(context.Background(), fmt.Sprintf( |
| 49 | "%s_%s", i.Type, i.InstanceID, |
| 50 | ), client.ContainerInspectOptions{}) |
| 51 | if err != nil { |
| 52 | return false |
| 53 | } |
| 54 | return info.Container.State.Running |
| 55 | } |
nothing calls this directly
no outgoing calls
no test coverage detected