containerd / containerd/continuity
Refactor test resources and create resource struct
Open
- Dominant language
- Go
- Stars
- 153
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
The test code should not be using a custom resource type which in turn must be created into the Resource types used by manifests.
```
r, err := Declare(Resource{
Kind: RegularFile,
Path: "/foo",
})
```
And for tests
```
[]Resource{
MustDeclare(Resource{
Kind: RegularFile,
Path: "/foo",
}),
}
```
Referenced from https://github.com/stevvooe/continuity/pull/14#discussion_r49527966
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.