diff options
Diffstat (limited to 'container/mount_test.go')
| -rw-r--r-- | container/mount_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/container/mount_test.go b/container/mount_test.go index 4c598b3f..64cac282 100644 --- a/container/mount_test.go +++ b/container/mount_test.go @@ -49,6 +49,24 @@ func TestEscapeOverlayDataSegment(t *testing.T) { } } +type opValidTestCase struct { + name string + op Op + want bool +} + +func checkOpsValid(t *testing.T, testCases []opValidTestCase) { + t.Run("valid", func(t *testing.T) { + for _, tc := range testCases { + t.Run(tc.name, func(t *testing.T) { + if got := tc.op.Valid(); got != tc.want { + t.Errorf("Valid: %v, want %v", got, tc.want) + } + }) + } + }) +} + type opsBuilderTestCase struct { name string ops *Ops |
