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: CreateTableItem_test.go
    path of file: ./repos/aws-doc-sdk-examples/go/dynamodb/CreateTableItem
    
    the code of the file until where you have to start completion: // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

package main

import (
	"encoding/json"
	"errors"
	"io/ioutil"
	"strconv"
	"testing"
	"tim
    
func TestCreateTable(t *testing.T) {
	thisTime := time.Now()
	nowString := thisTime.Format("2006-01-02 15:04:05 Monday")
	t.Log("Starting unit test at " + nowString)

	err := populateConfiguration(t)
	if err != nil {
		t.Fatal(err)
	}

	if globalConfig.Year == 0 {
		globalConfig.Year = 1999
	}

	if globalConfig.Plot == "" {
		globalConfig.Plot = "Not much happening"
	}

	if globalConfig.Rating == 0.0 {
		globalConfig.Rating = 5.0
	}

	if globalConfig.Title == "" {
		globalConfig.Title = "The Big Nada"
	}

	if globalConfig.Table == "" {
		// mock resources
		id := uuid.New()
		globalConfig.Table = "test-table-" + id.String()

		mockSvc := &mockDynamodbClient{}

		err = AddTableItem(mockSvc, &globalConfig.Year, &globalConfig.Table, &globalConfig.Title, &globalConfig.Plot, &globalConfig.Rating)
		if err != nil {
			t.Fatal(err)
		}
	} else {
		sess := session.Must(session.NewSessionWithOptions(session.Options{
			SharedConfigState: session.SharedConfigEnable,
		}))

		svc := dynamodb.New(sess)

		err = AddTableItem(svc, &globalConfig.Year, &globalConfig.Table, &globalConfig.Title, &globalConfig.Plot, &globalConfig.Rating)
		if err != nil {
			t.Fatal(err)
		}
	}

	t.Log("Successfully added '"+globalConfig.Title+"' ("+strconv.Itoa(globalConfig.Year)+") to table "+globalConfig.Table+" with rating", globalConfig.Rating)
}