Sanity check the container by: - Checking that the specified alias is a valid one for this container. - Verifying that stats are not empty.
(alias string, containerInfo info.ContainerInfo, t *testing.T)
| 36 | // - Checking that the specified alias is a valid one for this container. |
| 37 | // - Verifying that stats are not empty. |
| 38 | func sanityCheck(alias string, containerInfo info.ContainerInfo, t *testing.T) { |
| 39 | assert.Contains(t, containerInfo.Aliases, alias, "Alias %q should be in list of aliases %v", alias, containerInfo.Aliases) |
| 40 | assert.NotEmpty(t, containerInfo.Stats, "Expected container to have stats") |
| 41 | } |
| 42 | |
| 43 | // Sanity check the container by: |
| 44 | // - Checking that the specified alias is a valid one for this container. |
no outgoing calls
no test coverage detected
searching dependent graphs…