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: errors_test.go
    path of file: ./repos/azure-sdk-for-go/sdk/messaging/azservicebus/internal
    
    the code of the file until where you have to start completion: // Copyright (c) Microsoft Corporation.
    
func Test_recoveryKind(t *testing.T) {
	t.Run("link", func(t *testing.T) {
		linkErrorCodes := []string{
			string(amqp.ErrCondDetachForced),
		}

		for _, code := range linkErrorCodes {
			t.Run(code, func(t *testing.T) {
				rk := GetRecoveryKind(&amqp.Error{Condition: amqp.ErrCond(code)})
				require.EqualValues(t, RecoveryKindLink, rk, fmt.Sprintf("requires link recovery: %s", code))
			})
		}

		t.Run("sentinel errors", func(t *testing.T) {
			rk := GetRecoveryKind(&amqp.LinkError{})
			require.EqualValues(t, RecoveryKindLink, rk)

			rk = GetRecoveryKind(&amqp.SessionError{})
			require.EqualValues(t, RecoveryKindConn, rk)
		})
	})

	t.Run("connection", func(t *testing.T) {
		codes := []string{
			string(amqp.ErrCondConnectionForced),
			string(amqp.ErrCondInternalError),
		}

		for _, code := range codes {
			t.Run(code, func(t *testing.T) {
				rk := GetRecoveryKind(&amqp.Error{Condition: amqp.ErrCond(code)})
				require.EqualValues(t, RecoveryKindConn, rk, fmt.Sprintf("requires connection recovery: %s", code))
			})
		}

		t.Run("sentinel errors", func(t *testing.T) {
			rk := GetRecoveryKind(&amqp.ConnError{})
			require.EqualValues(t, RecoveryKindConn, rk)
		})
	})

	t.Run("nonretriable", func(t *testing.T) {
		codes := []string{
			string(amqp.ErrCondUnauthorizedAccess),
			string(amqp.ErrCondNotFound),
			string(amqp.ErrCondMessageSizeExceeded),
		}

		for _, code := range codes {
			t.Run(code, func(t *testing.T) {
				rk := GetRecoveryKind(&amqp.Error{Condition: amqp.ErrCond(code)})
				require.EqualValues(t, RecoveryKindFatal, rk, fmt.Sprintf("cannot be recovered: %s", code))
			})
		}
	})

	t.Run("none", func(t *testing.T) {
		codes := []string{
			string("com.microsoft:operation-cancelled"),
			string("com.microsoft:server-busy"),
			string("com.microsoft:timeout"),
		}

		for _, code := range codes {
			t.Run(code, func(t *testing.T) {
				rk := GetRecoveryKind(&amqp.Error{Condition: amqp.ErrCond(code)})
				require.EqualValues(t, RecoveryKindNone, rk, fmt.Sprintf("no recovery needed: %s", code))
			})
		}
	})
}