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: list_objects_exhaustive_test.go
    path of file: ./repos/storj/satellite/metabase
    
    the code of the file until where you have to start completion: // Copyright (C) 2024 Storj Labs, Inc.
// See LICENSE for copying information.

package metabase_test

import (
	"flag"
	"fmt"
	"testing"

	"github.com/stretchr/testify/require"

	"storj.io/common/testcontext"
	"storj.io/common/uuid"
	"storj.io/storj/satellite/metabase"
	"storj.io/storj/satellite/metabase/metabasetest"
)

var listObjectsExhaustive = flag.Bool("exhaustive", false, "exhaustively test list objects implementation")

func T
    
func TestListObjects_Exhaustive(t *testing.T) {
	if !*listObjectsExhaustive {
		t.Skip(`Use "go test -run TestListObjects_Exhaustive -exhaustive" to run this test.`)
	}

	entries := generateExhaustiveTestData()
	raw := objectEntriesToRawObjects(entries)
	naive := NewNaiveObjectsDB(entries)

	metabasetest.Run(t, func(ctx *testcontext.Context, t *testing.T, db *metabase.DB) {
		require.NoError(t, db.TestingBatchInsertObjects(ctx, raw))

		check := func(opts metabase.ListObjects) {
			expResult, expErr := naive.ListObjects(ctx, opts)
			gotResult, gotErr := db.ListObjects(ctx, opts)

			require.Equal(t, expErr, gotErr, fmt.Sprintf("%#v", opts))
			require.Equal(t, expResult, gotResult, fmt.Sprintf("%#v", opts))
		}

		var opts metabase.ListObjects
		opts.ProjectID = uuid.UUID{1}
		opts.BucketName = "b"
		for _, opts.Prefix = range []metabase.ObjectKey{"", "A/", "B/"} {
			for _, opts.Pending = range []bool{false} {
				for _, opts.AllVersions = range []bool{false} {
					for _, opts.Recursive = range []bool{true, false} {
						for _, opts.Limit = range []int{1, 3, 7} {
							opts.Cursor.Key = ""
							opts.Cursor.Version = 0
							check(opts)

							opts.Cursor.Version = metabase.MaxVersion
							check(opts)

							for i := range entries {
								entry := &entries[i]
								opts.Cursor.Key = entry.ObjectKey

								opts.Cursor.Version = 0
								check(opts)

								opts.Cursor.Version = entry.Version
								check(opts)

								opts.Cursor.Version = metabase.MaxVersion
								check(opts)
							}
						}
					}
				}
			}
		}
	})
}