github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/domain/infra/abi/images_test.go (about) 1 package abi 2 3 import ( 4 "testing" 5 6 "github.com/containers/common/libimage" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 // This is really intended to verify what happens with a 11 // nil pointer in layer.Created, but we'll just sanity 12 // check round tripping 42. 13 func TestToDomainHistoryLayer(t *testing.T) { 14 var layer libimage.ImageHistory 15 layer.Size = 42 16 newLayer := toDomainHistoryLayer(&layer) 17 assert.Equal(t, layer.Size, newLayer.Size) 18 }