MCPcopy
hub / github.com/perkeep/perkeep / KillRemove

Method KillRemove

pkg/test/dockertest/docker.go:246–254  ·  view source on GitHub ↗

KillRemove calls Kill on the container, and then Remove if there was no error. It logs any error to t.

(t *testing.T)

Source from the content-addressed store, hash-verified

244// KillRemove calls Kill on the container, and then Remove if there was
245// no error. It logs any error to t.
246func (c ContainerID) KillRemove(t *testing.T) {
247 if err := c.Kill(); err != nil {
248 t.Log(err)
249 return
250 }
251 if err := c.Remove(); err != nil {
252 t.Log(err)
253 }
254}
255
256// lookup retrieves the ip address of the container, and tries to reach
257// before timeout the tcp address at this ip and given port.

Callers 10

TestMongoStorageFunction · 0.80
setupContainerFunction · 0.80
SetupPostgreSQLContainerFunction · 0.80
TestPostgreSQLKVFunction · 0.80
TestMongoKVFunction · 0.80
TestMySQLKVFunction · 0.80
TestRollbackFunction · 0.80
newMySQLSortedFunction · 0.80
newMongoSortedFunction · 0.80
newPostgresSortedFunction · 0.80

Calls 3

KillMethod · 0.95
RemoveMethod · 0.95
LogMethod · 0.80

Tested by 8

TestMongoStorageFunction · 0.64
TestPostgreSQLKVFunction · 0.64
TestMongoKVFunction · 0.64
TestMySQLKVFunction · 0.64
TestRollbackFunction · 0.64
newMySQLSortedFunction · 0.64
newMongoSortedFunction · 0.64
newPostgresSortedFunction · 0.64