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: query_test.go
    path of file: ./repos/marketstore/frontend
    
    the code of the file until where you have to start completion: package frontend_test

import (
	"math"
	"sync/atomic"
	"testing"
	"time"

	"github.com/alpacahq/marketstore/v4/internal/di"
	"github.com/alpacahq/marketstore/v4/utils"

	"github.com/stretchr/testify/assert"

	"github.com/alpacahq/marketstore/v4/executor"
	"github.com/alpacahq/marketstore/v4/frontend"
	"github.com/alpacahq/marketstore/v4/sqlparser"
	"github.com/alpacahq/marketstore/v4/utils/io"
	"github.com/alpacahq/marketstore/v4/utils/test"
)

func setup(t *t
    
func TestListSymbols(t *testing.T) {
	rootDir, metadata, writer, q := setup(t)

	service := frontend.NewDataService(rootDir, metadata.CatalogDir, sqlparser.NewAggRunner(nil), writer, q)
	service.Init()

	var response frontend.ListSymbolsResponse
	if err := service.ListSymbols(nil, nil, &response); err != nil {
		t.Fatalf("error returned: %s", err)
	}

	contains := func(s []string, e string) bool {
		for _, a := range s {
			if a == e {
				return true
			}
		}
		return false
	}

	assert.True(t, contains(response.Results, "EURUSD"))
	assert.True(t, contains(response.Results, "USDJPY"))

	var resp frontend.ListSymbolsResponse

	req := &frontend.ListSymbolsRequest{}

	if err := service.ListSymbols(nil, req, &resp); err != nil {
		t.Fatalf("error returned: %s", err)
	}

	assert.True(t, contains(resp.Results, "EURUSD"))
	assert.True(t, contains(resp.Results, "USDJPY"))
}