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_projection_test.go
    path of file: ./repos/FerretDB/integration
    
    the code of the file until where you have to start completion: // Copyright 2021 FerretDB Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable 
    
func TestQueryProjectionSuccess(t *testing.T) {
	t.Parallel()
	ctx, collection := setup.Setup(t, shareddata.Scalars)

	for name, tc := range map[string]struct { //nolint:vet // used for testing only
		filter     bson.D   // required
		projection any      // required
		res        []bson.D // required

		skip string // optional, skip test with a specified reason
	}{
		"QueryProjectionOfFieldV": {
			filter:     bson.D{{"_id", "int32"}},
			projection: bson.D{{"v", true}, {"_id", false}},
			res: []bson.D{
				{{"v", int32(42)}},
			},
		},
	} {
		name, tc := name, tc
		t.Run(name, func(t *testing.T) {
			if tc.skip != "" {
				t.Skip(tc.skip)
			}

			t.Parallel()

			require.NotNil(t, tc.filter, "filter should be set")
			require.NotNil(t, tc.projection, "projection should be set")
			require.NotNil(t, tc.res, "res should be set")

			cursor, err := collection.Find(ctx, tc.filter, options.Find().SetProjection(tc.projection))
			require.NoError(t, err)
			defer cursor.Close(ctx)

			var res []bson.D
			err = cursor.All(ctx, &res)
			require.NoError(t, err)
			assert.Equal(t, tc.res, res)
		})
	}
}