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: helm_repo_test.go
    path of file: ./repos/porter/internal/repository/gorm
    
    the code of the file until where you have to start completion: package gorm_test

import (
	"testing"
	"time"

	"github.com/go-test/deep"
	"github.com/porter-dev/porter/internal/models"
	ints "github.com/porter-dev/porter/internal/models/integrations"
	"gorm.io/gorm"
	orm "gorm.io/gorm"
)

func TestCreateHelmRepo(t *testing.T) {
	tester := &tester{
		dbFileName: "./porte
    
func TestListHelmReposByProjectID(t *testing.T) {
	tester := &tester{
		dbFileName: "./porter_list_hrs.db",
	}

	setupTestEnv(tester, t)
	initProject(tester, t)
	initHelmRepo(tester, t)
	defer cleanup(tester, t)

	hrs, err := tester.repo.HelmRepo().ListHelmReposByProjectID(
		tester.initProjects[0].Model.ID,
	)
	if err != nil {
		t.Fatalf("%v\n", err)
	}

	if len(hrs) != 1 {
		t.Fatalf("length of helm repos incorrect: expected %d, got %d\n", 1, len(hrs))
	}

	// make sure data is correct
	expHelmRepo := models.HelmRepo{
		Name:      "helm-repo-test",
		RepoURL:   "https://example-repo.com",
		ProjectID: tester.initProjects[0].Model.ID,
	}

	hr := hrs[0]

	// reset fields for reflect.DeepEqual
	hr.Model = gorm.Model{}

	if diff := deep.Equal(expHelmRepo, *hr); diff != nil {
		t.Errorf("incorrect helm repo")
		t.Error(diff)
	}
}