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

package main

import (
	"reflect"
	"testing"
	"time"

	"github.com/stretchr/testify/require"
	"go.uber.org/zap"
)

func TestMapDeprecatedConfigs(t *testing.T) {
	log := zap.L()

	cases := []struct {
		testID                 string
		newExternalAddr        string
		deprecatedExternalAddr string
		expectedAddr           string
		newWallet              string
		deprecatedWallet       string
		expectedWallet         string
		newEmail               string
		deprecatedEmail        string
		expectedEmail          string
	}{
		{testID: "deprecated present, override",
			newExternalAddr:        "newAddr",
			deprecatedExternalAddr: "oldAddr",
			expectedAddr:           "oldAddr",
			newWallet:              "newWallet",
			depr
    
func TestMapDeprecatedConfigs(t *testing.T) {
	log := zap.L()

	cases := []struct {
		testID                 string
		newExternalAddr        string
		deprecatedExternalAddr string
		expectedAddr           string
		newWallet              string
		deprecatedWallet       string
		expectedWallet         string
		newEmail               string
		deprecatedEmail        string
		expectedEmail          string
	}{
		{testID: "deprecated present, override",
			newExternalAddr:        "newAddr",
			deprecatedExternalAddr: "oldAddr",
			expectedAddr:           "oldAddr",
			newWallet:              "newWallet",
			deprecatedWallet:       "oldWallet",
			expectedWallet:         "oldWallet",
			newEmail:               "newEmail",
			deprecatedEmail:        "oldEmail",
			expectedEmail:          "oldEmail",
		},
		{testID: "deprecated absent, do not override",
			newExternalAddr:        "newAddr",
			deprecatedExternalAddr: "",
			expectedAddr:           "newAddr",
			newWallet:              "newWallet",
			deprecatedWallet:       "",
			expectedWallet:         "newWallet",
			newEmail:               "newEmail",
			deprecatedEmail:        "",
			expectedEmail:          "newEmail",
		},
	}
	runCfg := runCfg{}
	for _, c := range cases {
		testCase := c
		t.Run(testCase.testID, func(t *testing.T) {
			runCfg.Contact.ExternalAddress = testCase.newExternalAddr
			runCfg.Deprecated.Kademlia.ExternalAddress = testCase.deprecatedExternalAddr
			runCfg.Operator.Wallet = testCase.newWallet
			runCfg.Deprecated.Kademlia.Operator.Wallet = testCase.deprecatedWallet
			runCfg.Operator.Email = testCase.newEmail
			runCfg.Deprecated.Kademlia.Operator.Email = testCase.deprecatedEmail
			mapDeprecatedConfigs(log, &runCfg.StorageNodeFlags)
			require.Equal(t, testCase.expectedAddr, runCfg.Contact.ExternalAddress)
			require.Equal(t, testCase.expectedWallet, runCfg.Operator.Wallet)
			require.Equal(t, testCase.expectedEmail, runCfg.Operator.Email)
		})
	}
}