You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pointer_test.go
    path of file: ./repos/imagor/vips/pointer
    
    the code of the file until where you have to start completion: package pointer

import (
	"sync"
	"testing"
	"unsafe"

	"github.com/stretchr/testify/assert"
)

func TestPointer(t *testing.T) {
	t.Cleanup(Clear)
	//	assert := makeAssert(t)
	assert.Len(t, store, 0)
	assert.Len(t, free, 0)
	assert.Len(t, blocks, 0)
	mutex.Lock()
	assert.Equal(t, unsafe.Pointer(nil), Save(nil))
	assert.Nil(t, Restore(nil))
	Unref(nil)
	mutex.Unlock()
	i1 := Save("foo")
	i2 := Save("bar")
	i3 := Save("baz")
	assert.Len(t, store, 3)
	assert.Len(t, free, blockSize-3)
	assert.Len(t, blocks, 1)
	var x interface{}
	x = Restore(i1)

    
func TestPointerIndexing(t *testing.T) {
	t.Cleanup(Clear)
	assert.Len(t, store, 0)
	assert.Len(t, free, 0)
	assert.Len(t, blocks, 0)

	i1 := Save("foo")
	i2 := Save("bar")
	_ = Save("baz")
	_ = Save("wibble")
	_ = Save("wabble")
	assert.Len(t, store, 5)
	assert.Len(t, free, blockSize-5)

	// Check that when we remove the first items inserted into the map there are
	// no subsequent issues
	Unref(i1)
	Unref(i2)
	assert.Len(t, free, blockSize-3)
	_ = Save("flim")
	ilast := Save("flam")
	assert.Len(t, store, 5)
	assert.Len(t, free, blockSize-5)

	x := Restore(ilast)
	assert.NotNil(t, x)
	if s, ok := x.(string); ok {
		assert.Equal(t, "flam", s)
	}
}