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: packages_test.go
    path of file: ./repos/azure-sdk-for-go/eng/tools/internal/packages/track1
    
    the code of the file until where you have to start completion: // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

package track1

import (
	"path/filepath"
	"strings"
	"testing"
)

const 
    
func TestList(t *testing.T) {
	root, err := filepath.Abs(testRoot)
	if err != nil {
		t.Fatalf("failed to get absolute path: %+v", err)
	}
	pkgs, err := List(root)
	if err != nil {
		t.Fatalf("failed to get packages: %+v", err)
	}
	if len(pkgs) != len(expected) {
		t.Fatalf("expected %d packages, but got %d", len(expected), len(pkgs))
	}
	for _, pkg := range pkgs {
		if pkgName, ok := expected[pkg.Path()]; !ok {
			t.Fatalf("got pkg path '%s', but not found in expected", pkg.Path())
		} else if !strings.EqualFold(pkgName, pkg.Name()) {
			t.Fatalf("expected package of '%s' in path '%s', but got '%s'", pkgName, pkg.Path(), pkg.Name())
		}
	}
}