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: seeds.go
    path of file: ./repos/graphql-engine/cli/integration_test/v3
    
    the code of the file until where you have to start completion: package v3

import (
	"bytes"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"testing"

	"github.com/hasura/graphql-engine/cli/v2/commands"

	"github.com/spf13/afero"

	"github.com/hasura/graphql-engine/cli/v2/seed"

	"github.com/hasura/graphql-engine/cli/v2"
	"github.com/hasura/graphql-engine/cli/v2/util"
	"github.com/stretchr/testify/assert"
)

type seedCreateInterface interface {
	Run() error
}

func TestSeedsCreateCmd(t *testing.T, ec *cli.ExecutionContext) {
	// copy migrations to ec.Execution.Directory/migrations
	os.RemoveAll(ec.SeedsDirectory)
	currDir, _ := os.Getwd()
	err := util.CopyDir(filepath.Join(currDir, "v3/seeds"), ec.SeedsDirectory)
	if err != nil {
		t.Fatal
    
func TestSeedsApplyCmd(t *testing.T, ec *cli.ExecutionContext) {
	// copy migrations to ec.Execution.Directory/migrations
	os.RemoveAll(ec.SeedsDirectory)
	currDir, _ := os.Getwd()
	err := util.CopyDir(filepath.Join(currDir, "v3/seeds"), ec.SeedsDirectory)
	if err != nil {
		t.Fatalf("unable to copy migrations directory %v", err)
	}
	tt := []struct {
		name    string
		opts    seedCreateInterface
		wantErr bool
	}{
		{
			"can apply all seeds",
			&commands.SeedApplyOptions{
				EC:     ec,
				Source: cli.Source{Name: "default"},
				Driver: seed.NewDriver(ec.APIClient.V2Query.Bulk, ec.APIClient.PGDump),
			},
			false,
		},
		{
			"can apply single file",
			&commands.SeedApplyOptions{
				EC:        ec,
				FileNames: []string{"1591867862409_test.sql"},
				Driver:    seed.NewDriver(ec.APIClient.V2Query.Bulk, ec.APIClient.PGDump),
			},
			false,
		},
		{
			"throws error when applying no idempotent operations",
			&commands.SeedApplyOptions{
				EC:        ec,
				FileNames: []string{"1591867862419_test2.sql"},
				Driver:    seed.NewDriver(ec.APIClient.V2Query.Bulk, ec.APIClient.PGDump),
			},
			true,
		},
	}

	for _, tc := range tt {
		t.Run(tc.name, func(t *testing.T) {
			err := tc.opts.Run()
			if (err != nil) && (!tc.wantErr) {
				t.Fatalf("%s: expected no error got %v", tc.name, err)
			}
		})
	}
}