MCPcopy Create free account
hub / github.com/digitalocean/go-libvirt / TestStoragePoolRefreshIntegration

Function TestStoragePoolRefreshIntegration

libvirt_integration_test.go:332–349  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

330}
331
332func TestStoragePoolRefreshIntegration(t *testing.T) {
333 l := NewWithDialer(testDialer(t))
334
335 if err := l.Connect(); err != nil {
336 t.Fatal(err)
337 }
338 defer l.Disconnect()
339
340 pool, err := l.StoragePool("test")
341 if err != nil {
342 t.Error(err)
343 }
344
345 err = l.StoragePoolRefresh(pool, 0)
346 if err != nil {
347 t.Error(err)
348 }
349}
350
351func TestStoragePoolRefreshInvalidIntegration(t *testing.T) {
352 l := NewWithDialer(testDialer(t))

Callers

nothing calls this directly

Calls 7

NewWithDialerFunction · 0.85
testDialerFunction · 0.85
StoragePoolMethod · 0.80
StoragePoolRefreshMethod · 0.80
ErrorMethod · 0.65
ConnectMethod · 0.45
DisconnectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…