mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
pkg/domain/infra/abi/images_test.go: remove commented code
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -16,39 +16,3 @@ func TestToDomainHistoryLayer(t *testing.T) {
|
||||
newLayer := toDomainHistoryLayer(&layer)
|
||||
assert.Equal(t, layer.Size, newLayer.Size)
|
||||
}
|
||||
|
||||
//
|
||||
// import (
|
||||
// "context"
|
||||
// "testing"
|
||||
//
|
||||
// "github.com/stretchr/testify/mock"
|
||||
// )
|
||||
//
|
||||
// type MockImageRuntime struct {
|
||||
// mock.Mock
|
||||
// }
|
||||
//
|
||||
// func (m *MockImageRuntime) Delete(ctx context.Context, renderer func() interface{}, name string) error {
|
||||
// _ = m.Called(ctx, renderer, name)
|
||||
// return nil
|
||||
// }
|
||||
//
|
||||
// func TestImageSuccess(t *testing.T) {
|
||||
// actual := func() interface{} { return nil }
|
||||
//
|
||||
// m := new(MockImageRuntime)
|
||||
// m.On(
|
||||
// "Delete",
|
||||
// mock.AnythingOfType("*context.emptyCtx"),
|
||||
// mock.AnythingOfType("func() interface {}"),
|
||||
// "fedora").
|
||||
// Return(nil)
|
||||
//
|
||||
// r := DirectImageRuntime{m}
|
||||
// err := r.Delete(context.TODO(), actual, "fedora")
|
||||
// if err != nil {
|
||||
// t.Errorf("should be nil, got: %v", err)
|
||||
// }
|
||||
// m.AssertExpectations(t)
|
||||
// }
|
||||
|
Reference in New Issue
Block a user