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: archive_test.go
    path of file: ./repos/jackal/pkg/storage/pgsql
    
    the code of the file until where you have to start completion: // Copyright 2022 The jackal Authors
//
// Licensed under t
    
func TestPgSQLArchive_FetchArchiveMetadata(t *testing.T) {
	minT := time.Date(2022, 01, 01, 00, 00, 00, 00, time.UTC)
	maxT := time.Date(2022, 12, 12, 00, 00, 00, 00, time.UTC)

	// given
	s, mock := newArchiveMock()
	mock.ExpectQuery(`SELECT min.id, min.created_at, max.id, max.created_at FROM \(SELECT "id", created_at FROM archives WHERE serial = \(SELECT MIN\(serial\) FROM archives WHERE archive_id = \$1\)\) AS min,\(SELECT "id", created_at FROM archives WHERE serial = \(SELECT MAX\(serial\) FROM archives WHERE archive_id = \$1\)\) AS max`).
		WithArgs("ortuman").
		WillReturnRows(
			sqlmock.NewRows([]string{"min.id", "min.created_at", "max.id", "max.created_at"}).AddRow("YWxwaGEg", minT, "b21lZ2Eg", maxT),
		)

	// when
	metadata, err := s.FetchArchiveMetadata(context.Background(), "ortuman")

	// then
	require.Nil(t, err)
	require.NotNil(t, metadata)

	require.Equal(t, "YWxwaGEg", metadata.StartId)
	require.Equal(t, "2022-01-01T00:00:00Z", metadata.StartTimestamp)
	require.Equal(t, "b21lZ2Eg", metadata.EndId)
	require.Equal(t, "2022-12-12T00:00:00Z", metadata.EndTimestamp)

	require.Nil(t, mock.ExpectationsWereMet())
}