(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestFactoryLoadNotExists(t *testing.T) { |
| 17 | stateDir := t.TempDir() |
| 18 | _, err := Load(stateDir, "nocontainer") |
| 19 | if err == nil { |
| 20 | t.Fatal("expected nil error loading non-existing container") |
| 21 | } |
| 22 | if !errors.Is(err, ErrNotExist) { |
| 23 | t.Fatalf("expected ErrNotExist, got %v", err) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestFactoryLoadContainer(t *testing.T) { |
| 28 | root := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…