// TestMutations applies a string-reversing visitor to our Container
// and then prints the resulting structure.
TestMutations applies a string-reversing visitor to our Container
and then prints the resulting structure.
// TestMutations applies a string - reversing visitor to our Container // and then prints the resulting structure .
func TestMutations(t *testing.T) {
	t.Run("empty", func(t *testing.T) {
		checkMutations(t, &l.ContainerType{}, 0)
	})
	t.Run("useValuePtrs=true", func(t *testing.T) {
		x, count := l.NewContainer(true)
		checkMutations(t, x, count)
	})
	t.Run("useValuePtrs=false", func(t *testing.T) {
		x, count := l.NewContainer(false)
		checkMutations(t, x, count)
	})
}
func TestMutations ( t * testing . T ) { t . Run ( " " , func ( t * testing . T ) { checkMutations ( t , & l . ContainerType { } , 0 ) } ) t . Run ( " " , func ( t * testing . T ) { x , count := l . NewContainer ( true ) checkMutations ( t , x , count ) } ) t . Run ( " " , func ( t * testing . T ) { x , count := l . NewContainer ( false ) checkMutations ( t , x , count ) } ) }
TestMutations applies a string-reversing visitor to our Container
and then prints the resulting structure.
TestMutations applies a string - reversing visitor to our Container and then prints the resulting structure .